File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -108,10 +108,14 @@ WebDriver also provides features for deselecting all the selected options::
108
108
This will deselect all OPTIONs from the first SELECT on the page.
109
109
110
110
Suppose in a test, we need the list of all default selected options, Select
111
- class provides a method that returns a list::
111
+ class provides a property method that returns a list::
112
112
113
113
select = Select(driver.find_element_by_xpath("xpath"))
114
- all_options = select.all_selected_options()
114
+ all_selected_options = select.all_selected_options
115
+
116
+ To get all available options::
117
+
118
+ options = select.options
115
119
116
120
Once you've finished filling out the form, you probably want to submit
117
121
it. One way to do this would be to find the "submit" button and click
You can’t perform that action at this time.
0 commit comments