Skip to content

Commit

Permalink
[py] Correct docstring around find_element and find_elements. Fixes S…
Browse files Browse the repository at this point in the history
  • Loading branch information
AutomatedTester committed Oct 19, 2020
1 parent 854c945 commit 9df797b
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions py/selenium/webdriver/remote/webdriver.py
Original file line number Diff line number Diff line change
Expand Up @@ -1114,8 +1114,7 @@ def timeouts(self, timeouts):

def find_element(self, by=By.ID, value=None):
"""
Find an element given a By strategy and locator. Prefer the find_element_by_* methods when
possible.
Find an element given a By strategy and locator.
:Usage:
::
Expand All @@ -1142,8 +1141,7 @@ def find_element(self, by=By.ID, value=None):

def find_elements(self, by=By.ID, value=None):
"""
Find elements given a By strategy and locator. Prefer the find_elements_by_* methods when
possible.
Find elements given a By strategy and locator.
:Usage:
::
Expand Down
6 changes: 2 additions & 4 deletions py/selenium/webdriver/remote/webelement.py
Original file line number Diff line number Diff line change
Expand Up @@ -704,8 +704,7 @@ def _execute(self, command, params=None):

def find_element(self, by=By.ID, value=None):
"""
Find an element given a By strategy and locator. Prefer the find_element_by_* methods when
possible.
Find an element given a By strategy and locator.
:Usage:
::
Expand All @@ -732,8 +731,7 @@ def find_element(self, by=By.ID, value=None):

def find_elements(self, by=By.ID, value=None):
"""
Find elements given a By strategy and locator. Prefer the find_elements_by_* methods when
possible.
Find elements given a By strategy and locator.
:Usage:
::
Expand Down

0 comments on commit 9df797b

Please sign in to comment.