Timeline for What is the correct way to select an <option> using Selenium's Python WebDriver
Current License: CC BY-SA 3.0
13 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Feb 15, 2020 at 21:43 | comment | added | Anu |
Complain if I try to get the option tag value 55 or visibletext in ID location at this URL?. The weird things are select.options returns only Select One options when you loop through options, instead of return 3 options. Any suggestions?
|
|
Apr 28, 2015 at 22:03 | comment | added | Jason Ward | Why did you edit my answer instead of adding your own? | |
S Apr 28, 2015 at 16:32 | history | edited | user246 | CC BY-SA 3.0 |
Wrapped code in a function. Added examples of using this function on multiselect fieds.
|
S Apr 28, 2015 at 16:32 | history | suggested | Alex Volkov | CC BY-SA 3.0 |
Wrapped code in a function. Added examples of using this function on multiselect fieds.
|
Apr 28, 2015 at 16:18 | review | Suggested edits | |||
S Apr 28, 2015 at 16:32 | |||||
S Sep 5, 2014 at 14:23 | history | suggested | Yang Liu | CC BY-SA 3.0 |
add a break when you find the option you want
|
Sep 5, 2014 at 5:43 | review | Suggested edits | |||
S Sep 5, 2014 at 14:23 | |||||
Mar 28, 2014 at 20:11 | comment | added | Jason Ward |
@ChrisB you are correct that his solution is better, however I am fairly certain that when this was response was written the Select function did not exist :)
|
|
Mar 27, 2014 at 16:04 | comment | added | Chris Bier |
Good solution, but not as good as Daniel Abel's proposed solution. Better off using the built in Select function
|
|
Jul 24, 2013 at 1:43 | comment | added | Jason Ward |
@abhi Make sure you are using find_elements_by_tag_name and not find_element_by_tag_name (The s in elements matters).
|
|
Apr 18, 2013 at 9:53 | comment | added | abhi | @JasonWard How are you iterating over the Web Element object in for loop. I tried the same and got a exception that the object is not iterable. Any suggestion. Thanks | |
Jul 7, 2011 at 21:42 | vote | accept | John Keyes | ||
Jul 7, 2011 at 13:29 | history | answered | Jason Ward | CC BY-SA 3.0 |