MCPcopy Create free account
hub / github.com/seleniumbase/SeleniumBase / is_alert_present

Method is_alert_present

seleniumbase/fixtures/base_case.py:8925–8930  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

8923 return page_utils.is_valid_url(url)
8924
8925 def is_alert_present(self):
8926 try:
8927 self.driver.switch_to.alert
8928 return True
8929 except Exception:
8930 return False
8931
8932 def is_online(self):
8933 """Return True if connected to the Internet."""

Callers 1

test_alertsMethod · 0.45

Calls

no outgoing calls

Tested by 1

test_alertsMethod · 0.36