selenium webdriver - Check whether SelectBox has items, Robot-Framework, Selenium2Library -



selenium webdriver - Check whether SelectBox has items, Robot-Framework, Selenium2Library -

how can check whether <select> box has more 1 <option>?

the <option>s loaded using ajax , placed 2 <optgroup>s.

<option value="">default</option> <optgroup ...> <option value=..>... <option ..>... ... </optgroup> <optgroup ...> <option ..>... <option ..>... ...

you can utilize get list items homecoming list of items , utilize get length number of elements in list:

select options test open browser your_url chrome @{items} list items id=select_list_id ${list_length} length ${items} should true ${list_length} > 1

selenium-webdriver robotframework

Comments

Popular posts from this blog

php - Android app custom user registration and login with cookie using facebook sdk -

django - Access session in user model .save() -

php - .htaccess Multiple Rewrite Rules / Prioritizing -