I have tried the SELECT class utility with all it's functions including selectByVisibleText() and others but no success. Following is the div hierarchy of my elements and then is the <select> box which I want to read.
<div class="abc">
<div class="def">
<div class="xyz">
<div></div>
<select class="qwe" id="asd">
<option class="zxc" label="test" value="01">01</option>
and options are so on till value 12.
How do I get to select the options using selenium webdriver in python ??
EDIT 1: The code I tried is as follows:
select = Select(browser.find_element_by_id("asd"))
select.select_by_visible_text('04')
And,
eMonth = browser.find_element_by_id("asd")
eMonth.send_keys("10")