Hi All,
Here is an example on how to handle Dropdown elements in selenium IDE.
Example:
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Select From Dropdown</title>
</head>
<body>
<table cellpadding="1" cellspacing="1" border="1">
<thead>
<tr><td rowspan="1" colspan="3">Select From Dropdown</td></tr>
</thead><tbody>
<tr>
<td>store</td>
<td>58058</td>
<td>option1</td>
</tr>
<tr>
<td>store</td>
<td>30</td>
<td>index1</td>
</tr>
<tr>
<td>open</td>
<td>http://pages.ebay.com/sitemap.html</td>
<td></td>
</tr>
<tr>
<td>select</td>
<td>category0</td>
<td>label=Toys & Hobbies</td>
</tr>
<tr>
<td>storeSelectedLabel</td>
<td>category0</td>
<td>label1</td>
</tr>
<tr>
<td>assertSelectedIndex</td>
<td>category0</td>
<td>${index1}</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>category0</td>
<td>${label1}</td>
</tr>
<tr>
<td>select</td>
<td>category0</td>
<td>label=Computers & Networking</td>
</tr>
<tr>
<td>storeSelectedLabel</td>
<td>category0</td>
<td>label2</td>
</tr>
<tr>
<td>assertSelectedLabel</td>
<td>category0</td>
<td>${label2}</td>
</tr>
<tr>
<td>assertSelectedValue</td>
<td>category0</td>
<td>${option1}</td>
</tr>
</tbody></table>
</body>
</html>
1 comment:
Nice way of explaining selenium dropdown chaitanya
I would like to talk to you.
I am in Hyd. if You too are here.
can u call me at 98496 06793 or give me your mail id to talk to u.
Post a Comment