18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
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
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.
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
_focus(selecteID);
_setSelected(selecteID, "BLABLA");
_blur(selecteID);
_click(selecteID);
Just wondering if this is the same issue or not...
Brian
thanx for your response. Unfortunatelly your workaround does not work
feilerfuf