I want to select a value from a drop-down option. The HTML is as follows:
<span id="searchTypeFormElementsStd">
<label for="numReturnSelect"></label>
<select id="numReturnSelect" name="numReturnSelect">
<option value="200"></option>
<option value="250"></option>
<option value="500"></option>
<option selected="" value="200"></option>
<option value="800"></option>
<option value="15000"></option>
<option value="85000"></option>
</select>
</span
I tried as follows:
find_element_by_xpath("//select[@name='numReturnSelect']/option[text()='15000']").click()
What is wrong with it? Please help me with code!