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>
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)
SELECT HALT w3c.table.cell.first "S" BY_VALUE (Selects Saab)
SELECT HALT w3c.table.cell.first "Audi" BY_VISIBLE_TEXT (Selects Audi)
Comments
Please sign in to leave a comment.