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.

_setselected problem in firefox2

feilerfuffeilerfuf Members
edited November -1 in Sahi - Open Source
Hi there,

me again ;).
I have a dropdown (<select>) on a page with the attribute onchange="location.href='[SOME_URL]' + this.options[this.selectedIndex].value". Works fine. Can also be accessed by all browsers in sahi by the command "_setselected(_select("selecteID"),"BLABLA");" and works except of Firefox2.
Firefox2 sets the option in the select, it means it switches the selected dropdown item, but the onchange event does not fire. It fires when you do it manually, but no by the "_setSelected" command.

Any idea someone?

Thank you!
Regards.

Comments

  • I'm having a similar problem in IE8 (and just posted a question about it). I found this workaround:

    _focus(selecteID);
    _setSelected(selecteID, "BLABLA");
    _blur(selecteID);
    _click(selecteID);

    Just wondering if this is the same issue or not...

    Brian
  • Hi dasspunk,

    thanx for your response. Unfortunatelly your workaround does not work :(. Still the same sittaution: The desired item in the dropdown will be selected, but the onchange-event does not fire.

    feilerfuf
Sign In or Register to comment.