Answer the question
In order to leave comments, you need to log in
How to find the value?
Greetings to all)
I am looking for elements by xpath, but with one there was difficulty. Here is an example of a working search:
browser.find_element_by_xpath("//td[text()='Изменено']/following-sibling::td[1]").click()
- it works, everything is OK. <td>
<select name="LAMP[]" size="4" multiple="multiple">
<option value="">(нет)</option>
<option value="red">красный</option>
<option value="yellow">желтый</option>
<option value="green">зеленый</option>
<option value="grey">серый</option> </select></td>
browser.find_element_by_xpath("//select['option' and @value='yellow']/following-sibling::td[2]").click()
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question