In Python, Java, and several other selenium bindings, there is a very convenient abstraction over the HTML constructs select->option , Select class .
For example, imagine that there is a Select tag:
<select id="fruits" class="select" name="fruits"> <option value="1">Banana</option> <option value="2">Mango</option> </select>
Here's how we can work in Python:
from selenium.webdriver.support.ui import Select select = Select(driver.find_element_by_id('fruits'))
In other words, this is a very transparent and easy to use abstraction.
Can I manipulate the Select tag with a tag in the transporter in a similar way?
This is not a duplicate. How to choose an option for Protractorjs e2e drop-down tests or How to click an option in the selection field in the Protractor test? .
python selenium testing selenium-webdriver protractor
alecxe Feb 25 '15 at 15:50 2015-02-25 15:50
source share