Skip to content

Commit 7f973fe

Browse files
committed
Add value parameter description to WebElement locator methods docstrings
1 parent 91fc609 commit 7f973fe

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/selenium/webdriver/remote/webelement.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -524,6 +524,7 @@ def find_element(self, by=By.ID, value=None) -> WebElement:
524524
- By.LINK_TEXT: Locate a link element by its exact text.
525525
- By.PARTIAL_LINK_TEXT: Locate a link element by partial text match.
526526
- RelativeBy: Locate elements relative to a specified root element.
527+
value: The locator value to use with the specified `by` strategy.
527528
528529
Returns:
529530
The first matching `WebElement` found on the page.
@@ -548,6 +549,7 @@ def find_elements(self, by=By.ID, value=None) -> list[WebElement]:
548549
- By.LINK_TEXT: Locate a link element by its exact text.
549550
- By.PARTIAL_LINK_TEXT: Locate a link element by partial text match.
550551
- RelativeBy: Locate elements relative to a specified root element.
552+
value: The locator value to use with the specified `by` strategy.
551553
552554
Returns:
553555
List of `WebElements` matching locator strategy found on the page.

0 commit comments

Comments
 (0)