I am trying to select from a list of three buttons, but cannot find a way to select them. Below is the HTML I'm working with.
<input name="pollQuestion" type="radio" value="SRF"> <font face="arial,sans-serif" size="-1">ChoiceOne</font><br /> <input name="pollQuestion" type="radio" value="COM"> <font face="arial,sans-serif" size="-1">ChoiceTwo</font><br /> <input name="pollQuestion" type="radio" value="MOT"> <font face="arial,sans-serif" size="-1">ChoiceThree</font>
I can find it using the following code:
for i in browser.find_elements_by_xpath("//*[@type='radio']"): print i.get_attribute("value")
These outputs are: SRF, COM, MOT
But I would like to choose ChoiceOne. (To click it) How to do it?
python selenium selenium-webdriver
Das bruno
source share