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.

Assert wether a select list is disabled or not in Sahi

RaikoryuRaikoryu Members
edited March 2013 in Sahi - Open Source
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.

Best Answer

  • 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

  • Hi Raikoryu,

    I can just answer your 2nd question:
    you can use _getText() to get all the values in the select
    _getText(_select("identifier"));
    

    _getText will also return it in array form.
Sign In or Register to comment.