18 January 2026:


This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.



Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.

Button element in IE/FF

JirkaJirka Members
edited November -1 in Sahi - Open Source
Hi!

I'm having problem with html element <button>. Our app generates it without type parameter, so there is the problem like mentioned in topic "buttons have no value in Internet Explorer".
Firefox means that the <button> is type "submit" and the IE assumes that the <button> is type "button".
But if I want to test my app in both of the browsers I got a problem. Because
_click(_button("Add"));
dosn't work in FF, and
_click(_submit("Add"));
doesn't work in IE. I have already tried the common accessor
_click(_byID("pt1:r1:1:pt1:dc3:dc_cb3"));
but this didn't worked in any browser :)

What is the solution for this problem?

Thanks

Jirka

Comments

  • what is proxy i have to set in my pc ?
  • Problem solved in Java by using method

    browser.byId("pt1:r1:1:pt1:dc1:dc_cb3").click();

    But this statement in web interface still not working:

    _click(_byID("pt1:r1:1:pt1:dc3:dc_cb3"));
  • OK, I'm stupid. Sahi is case sensitive, so _byId() is working instead of _byID()
This discussion has been closed.