Skip to content

Commit

Permalink
Fix typos in select.py (#6925)
Browse files Browse the repository at this point in the history
Fix typos in the docstrings
  • Loading branch information
dannystaple authored and cgoldberg committed Feb 11, 2019
1 parent 29a4201 commit dc1e89d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions py/selenium/webdriver/support/select.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ def select_by_value(self, value):
:Args:
- value - The value to match against
throws NoSuchElementException If there is no option with specisied value in SELECT
throws NoSuchElementException If there is no option with specified value in SELECT
"""
css = "option[value =%s]" % self._escapeString(value)
opts = self._el.find_elements(By.CSS_SELECTOR, css)
Expand All @@ -93,7 +93,7 @@ def select_by_index(self, index):
:Args:
- index - The option at this index will be selected
throws NoSuchElementException If there is no option with specisied index in SELECT
throws NoSuchElementException If there is no option with specified index in SELECT
"""
match = str(index)
for opt in self.options:
Expand All @@ -111,7 +111,7 @@ def select_by_visible_text(self, text):
:Args:
- text - The visible text to match against
throws NoSuchElementException If there is no option with specisied text in SELECT
throws NoSuchElementException If there is no option with specified text in SELECT
"""
xpath = ".//option[normalize-space(.) = %s]" % self._escapeString(text)
opts = self._el.find_elements(By.XPATH, xpath)
Expand Down Expand Up @@ -157,7 +157,7 @@ def deselect_by_value(self, value):
:Args:
- value - The value to match against
throws NoSuchElementException If there is no option with specisied value in SELECT
throws NoSuchElementException If there is no option with specified value in SELECT
"""
if not self.is_multiple:
raise NotImplementedError("You may only deselect options of a multi-select")
Expand All @@ -177,7 +177,7 @@ def deselect_by_index(self, index):
:Args:
- index - The option at this index will be deselected
throws NoSuchElementException If there is no option with specisied index in SELECT
throws NoSuchElementException If there is no option with specified index in SELECT
"""
if not self.is_multiple:
raise NotImplementedError("You may only deselect options of a multi-select")
Expand Down

0 comments on commit dc1e89d

Please sign in to comment.