Selenium WebDriver provides a special
Select class to interact with the lists and dropdowns on a web page. For example, in the demo application, you can see a dropdown to select the language for the store. You can choose and set a language for the store as shown in the following screenshot:
Dropdowns or lists are implemented with the
<select> element in HTML. The options or choices are implemented with the
<options> element within a
<select> element as shown in the following HTML code:
<select id="select-language" title="Your Language" onchange="window.location.href=this.value"> <option value="http://demo.magentocommerce.com/?___store=default&___from_store=default" ...