Skip to content

Commit ea8ca37

Browse files
Merge branch 'trunk' into response-json
2 parents 2a78f28 + ea8402d commit ea8ca37

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

py/selenium/webdriver/support/expected_conditions.py

Lines changed: 4 additions & 2 deletions
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)