Thursday, February 10, 2011

Selecting All values from a drop down list box

To select all values from the drop down list box we use "storeSelectOptions" command. Following is the example for the same.

Example for "storeSelectOptions" Selenese command:

Just copy paste the following script into your Selenium IDE and use "Google.com" as the base URL.

<tr>
    <td>open</td>
    <td>/</td>
    <td></td>
</tr>
<tr>
    <td>clickAndWait</td>
    <td>link=Advanced search</td>
    <td></td>
</tr>
<tr>
    <td>storeSelectOptions</td>
    <td>tbs</td>
    <td>test</td>
</tr>
<tr>
    <td>echo</td>
    <td>${test}</td>
    <td></td>
</tr>

No comments:

Post a Comment