Skip to content

Commit ec681f2

Browse files
mkvetkolmtierney
authored andcommitted
[py] Add docstring to WebElement find_element and find_elements methods (#5384)
1 parent 63d571a commit ec681f2

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

py/selenium/webdriver/remote/webelement.py

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -628,6 +628,14 @@ def _execute(self, command, params=None):
628628
return self._parent.execute(command, params)
629629

630630
def find_element(self, by=By.ID, value=None):
631+
"""
632+
'Private' method used by the find_element_by_* methods.
633+
634+
:Usage:
635+
Use the corresponding find_element_by_* instead of this.
636+
637+
:rtype: WebElement
638+
"""
631639
if self._w3c:
632640
if by == By.ID:
633641
by = By.CSS_SELECTOR
@@ -645,6 +653,14 @@ def find_element(self, by=By.ID, value=None):
645653
{"using": by, "value": value})['value']
646654

647655
def find_elements(self, by=By.ID, value=None):
656+
"""
657+
'Private' method used by the find_elements_by_* methods.
658+
659+
:Usage:
660+
Use the corresponding find_elements_by_* instead of this.
661+
662+
:rtype: list of WebElement
663+
"""
648664
if self._w3c:
649665
if by == By.ID:
650666
by = By.CSS_SELECTOR

0 commit comments

Comments
 (0)