Skip to content

Commit ea8402d

Browse files
Delta456diemol
andauthored
[py] expected_conditions: correct type annotation (#15337)
* Revert "add alias attr to all edge structs" This reverts commit f17dd08dd32998a310510f0abc44e5b484202a4d. * Reapply "add alias attr to all edge structs" This reverts commit cc16e3f. oops * [py] expected_conditions: correct type annotation * lint --------- Co-authored-by: Diego Molina <[email protected]>
1 parent 505b594 commit ea8402d

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

py/selenium/webdriver/support/expected_conditions.py

+4-2
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,15 @@ def _predicate(driver: WebDriverOrWebElement):
485485
return _predicate
486486

487487

488-
def frame_to_be_available_and_switch_to_it(locator: Union[Tuple[str, str], str]) -> Callable[[WebDriver], bool]:
488+
def frame_to_be_available_and_switch_to_it(
489+
locator: Union[Tuple[str, str], str, WebElement]
490+
) -> Callable[[WebDriver], bool]:
489491
"""An expectation for checking whether the given frame is available to
490492
switch to.
491493
492494
Parameters:
493495
----------
494-
locator : Union[Tuple[str, str], str]
496+
locator : Union[Tuple[str, str], str, WebElement]
495497
Used to find the frame.
496498
497499
Returns:

0 commit comments

Comments
 (0)