Skip to content

Commit 22fc931

Browse files
committed
[py] expected_conditions: correct type annotation
1 parent 20ed5e8 commit 22fc931

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py/selenium/webdriver/support/expected_conditions.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -485,13 +485,13 @@ 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(locator: Union[Tuple[str, str], str, WebElement]) -> Callable[[WebDriver], bool]:
489489
"""An expectation for checking whether the given frame is available to
490490
switch to.
491491
492492
Parameters:
493493
----------
494-
locator : Union[Tuple[str, str], str]
494+
locator : Union[Tuple[str, str], str, WebElement]
495495
Used to find the frame.
496496
497497
Returns:

0 commit comments

Comments
 (0)