Skip to content

Commit 23a0d7a

Browse files
authored
[py] Update type annotation to include WebElement
This adds `WebElement` to the type annotation for the `frame_to_be_available_and_switch_to_it` function in the `expected_conditions` module.
1 parent 622f761 commit 23a0d7a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/support/expected_conditions.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -485,7 +485,7 @@ 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

0 commit comments

Comments
 (0)