Commit fb4c62e
Update docstring of wait.py so it can also cover the case of WebElement as 1st arg of WebDriverWait. (#12376)
Update wait.py
The 1st argument can be either Instance of WebDriver or a WebElement.
If it is a WebElement it can be used to get another element using as base the the previous one and having a relative locator.
The logic is identical with:
relative_element = base_element.find_element(By.XPATH, "./relative_xpath")
Co-authored-by: Diego Molina <[email protected]>1 parent b22d08d commit fb4c62e
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | | - | |
| 40 | + | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
| |||
0 commit comments