Skip to content

Commit

Permalink
[py]: Add docstring for alert_is_present
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Jan 27, 2023
1 parent 398524f commit fed9371
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions py/selenium/webdriver/support/expected_conditions.py
Original file line number Diff line number Diff line change
Expand Up @@ -431,6 +431,9 @@ def _predicate(driver):


def alert_is_present():
"""An expectation for checking if an alert is currently present and
switching to it."""

def _predicate(driver):
try:
return driver.switch_to.alert
Expand Down

0 comments on commit fed9371

Please sign in to comment.