We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 480b042 commit 5372922Copy full SHA for 5372922
py/test/selenium/webdriver/common/alerts_tests.py
@@ -195,6 +195,8 @@ def test_should_throw_an_exception_if_an_alert_has_not_been_dealt_with_and_dismi
195
driver.find_element(By.ID, "select").click()
196
alert = _wait_for_alert(driver)
197
alert.dismiss()
198
+ with pytest.raises(NoAlertPresentException):
199
+ alert.text
200
201
202
def test_prompt_should_use_default_value_if_no_keys_sent(driver, pages):
0 commit comments