Skip to content

Commit a93c663

Browse files
committed
Add value parameter description to WebDriver locator methods docstrings
1 parent aa5f360 commit a93c663

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

py/selenium/webdriver/remote/webdriver.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -822,6 +822,7 @@ def find_element(self, by=By.ID, value: Optional[str] = None) -> WebElement:
822822
values include: By.ID, By.NAME, By.XPATH, By.CSS_SELECTOR,
823823
By.CLASS_NAME, By.TAG_NAME, By.LINK_TEXT, By.PARTIAL_LINK_TEXT,
824824
or RelativeBy.
825+
value: The locator value to use with the specified `by` strategy.
825826
826827
Returns:
827828
The first matching WebElement found on the page.
@@ -847,6 +848,7 @@ def find_elements(self, by=By.ID, value: Optional[str] = None) -> list[WebElemen
847848
values include: By.ID, By.NAME, By.XPATH, By.CSS_SELECTOR,
848849
By.CLASS_NAME, By.TAG_NAME, By.LINK_TEXT, By.PARTIAL_LINK_TEXT,
849850
or RelativeBy.
851+
value: The locator value to use with the specified `by` strategy.
850852
851853
Returns:
852854
List of WebElements matching locator strategy found on the page.

0 commit comments

Comments
 (0)