Skip to content

Commit 05ab017

Browse files
authored
[py] fix doc for find_elements (#15411)
1 parent 252ba68 commit 05ab017

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

py/selenium/webdriver/remote/shadowroot.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -97,11 +97,11 @@ def find_elements(self, by: str = By.ID, value: str = None):
9797
9898
Example:
9999
--------
100-
element = driver.find_element(By.ID, 'foo')
100+
element = driver.find_elements(By.ID, 'foo')
101101
102102
Returns:
103103
-------
104-
WebElement
104+
List[WebElement]
105105
list of `WebElements` matching locator strategy found on the page.
106106
"""
107107
if by == By.ID:

py/selenium/webdriver/remote/webdriver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -916,11 +916,11 @@ def find_elements(self, by=By.ID, value: Optional[str] = None) -> List[WebElemen
916916
917917
Example:
918918
--------
919-
element = driver.find_element(By.ID, 'foo')
919+
element = driver.find_elements(By.ID, 'foo')
920920
921921
Returns:
922922
-------
923-
WebElement
923+
List[WebElement]
924924
list of `WebElements` matching locator strategy found on the page.
925925
"""
926926
by, value = self.locator_converter.convert(by, value)

py/selenium/webdriver/remote/webelement.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -619,11 +619,11 @@ def find_elements(self, by=By.ID, value=None) -> List[WebElement]:
619619
620620
Example:
621621
--------
622-
>>> element = driver.find_element(By.ID, 'foo')
622+
>>> element = driver.find_elements(By.ID, 'foo')
623623
624624
Returns:
625625
-------
626-
WebElement
626+
List[WebElement]
627627
list of `WebElements` matching locator strategy found on the page.
628628
"""
629629
by, value = self._parent.locator_converter.convert(by, value)

0 commit comments

Comments
 (0)