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.
Selecting a value from the drop down list.
I have two values in a drop down list and want to select one value. I have selected "Primary (Live)"
and used
_setSelected(_select("_idJsp7:datasource"),"Primary(Live)"); but it is not working.
In Log it shows an error
_setSelected(_select(3),"Primary(Live)");
Error: Option not found: Primary(Live)
Error("Option not found: Primary(Live)")@:0
and used
_setSelected(_select("_idJsp7:datasource"),"Primary(Live)"); but it is not working.
In Log it shows an error
_setSelected(_select(3),"Primary(Live)");
Error: Option not found: Primary(Live)
Error("Option not found: Primary(Live)")@:0
Comments
You have selected "Primary (Live)" and used _setSelected(_select("_idJsp7:datasource"),"Primary(Live)");
Is there a space between Primary and (Live)? Make sure that you have entered the correct value in _setSelected.
Can you paste the select tag content of your HTML page?
Its working....... delete space after comma and "Primary(Live)"
_setSelected(_select("_idJsp7:datasource"),"Primary(Live)");