Skip to content

Commit 5372922

Browse files
committed
check dismiss
1 parent 480b042 commit 5372922

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Diff for: py/test/selenium/webdriver/common/alerts_tests.py

+2
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,8 @@ def test_should_throw_an_exception_if_an_alert_has_not_been_dealt_with_and_dismi
195195
driver.find_element(By.ID, "select").click()
196196
alert = _wait_for_alert(driver)
197197
alert.dismiss()
198+
with pytest.raises(NoAlertPresentException):
199+
alert.text
198200

199201

200202
def test_prompt_should_use_default_value_if_no_keys_sent(driver, pages):

0 commit comments

Comments
 (0)