How to work with Select/Drop-down?

Let's assume you have the following drop-down or select widget in your application:

<select>
  <option value="V">Volvo</option>
  <option value="S">Saab</option>
  <option value="M">Mercedes</option>
  <option value="A">Audi</option>
</select>

mceclip0.png

You can use the SELECT command to interact with this widget, but you have 3 different options: by index, by value, or by visible text. Example of each option is shown below:

SELECT HALT application.page.select.car "1" BY_INDEX (Selects Volvo)

mceclip0.png

SELECT HALT w3c.table.cell.first "S" BY_VALUE (Selects Saab)

mceclip1.png

SELECT HALT w3c.table.cell.first "Audi" BY_VISIBLE_TEXT (Selects Audi)

mceclip3.png

Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

Please sign in to leave a comment.