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.
Assert wether a select list is disabled or not in Sahi
Greetings,
The title says it all, I need to know if it is possible to assert in Sahi the fact that a select list is disabled or not.
I'm using this opportunity to ask another question: is it possible to get an array of all the select list's possible values?
Thank you in advance.
The title says it all, I need to know if it is possible to assert in Sahi the fact that a select list is disabled or not.
I'm using this opportunity to ask another question: is it possible to get an array of all the select list's possible values?
Thank you in advance.
Best Answer
-
_select(0).isDisabled
will give you true or false, to check the state of the select box.
_select(0).options
where i is the 0,1,2,....(select options length-1).
This code will solve you 2nd query

Answers
I can just answer your 2nd question:
you can use _getText() to get all the values in the select
_getText will also return it in array form.