Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 42e545d

Browse files
authored
Merge pull request baijum#84 from rogererens/patch-2
Fix small typos
2 parents 5a5211a + 12826fe commit 42e545d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

source/navigating.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ drop down, and you can use "setSelected" to set something like an
8484
option.click()
8585

8686
This will find the first "SELECT" element on the page, and cycle
87-
through each of it's OPTIONs in turn, printing out their values, and
87+
through each of its OPTIONs in turn, printing out their values, and
8888
selecting each in turn.
8989

9090
As you can see, this isn't the most efficient
@@ -104,12 +104,12 @@ WebDriver also provides features for deselecting all the selected options::
104104
select = Select(driver.find_element_by_id('id'))
105105
select.deselect_all()
106106

107-
This will deselect all OPTIONs from the first SELECT on the page.
107+
This will deselect all OPTIONs from that particular SELECT on the page.
108108

109109
Suppose in a test, we need the list of all default selected options, Select
110110
class provides a property method that returns a list::
111111

112-
select = Select(driver.find_element_by_xpath("xpath"))
112+
select = Select(driver.find_element_by_xpath("//select[@name='name']"))
113113
all_selected_options = select.all_selected_options
114114
115115
To get all available options::

0 commit comments

Comments
 (0)