Python / Selenium : Switch to an alert and verify the text within
On newer version of Python(3.4)
def is_alert_present(self):
try:
self.driver.switch_to_alert()
except NoAlertPresentException:
return False
On newer version of Python(3.4)
def is_alert_present(self):
try:
self.driver.switch_to_alert()
except NoAlertPresentException:
return False