I would like to select an <option> child of a <select> using the Python WebDriver.
I have a reference to the option WebElement I wish to select and have tried select() and click() methods but neither works.
What is the correct way to select an <option>?
click()on the default<option>, which made it look like nothing had changed. – John Keyes Jul 7 '11 at 10:30option.click(), but it does work withoption.select(). In the latest webelement.py source,selecthas been removed, andclickmust be used in it’s place. It will be interesting to see if my test works with the latest release. – John Keyes Jul 7 '11 at 10:58