Skip to content

Commit fed9371

Browse files
committed
[py]: Add docstring for alert_is_present
1 parent 398524f commit fed9371

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

py/selenium/webdriver/support/expected_conditions.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -431,6 +431,9 @@ def _predicate(driver):
431431

432432

433433
def alert_is_present():
434+
"""An expectation for checking if an alert is currently present and
435+
switching to it."""
436+
434437
def _predicate(driver):
435438
try:
436439
return driver.switch_to.alert

0 commit comments

Comments
 (0)