Skip to content

Commit 670fc6f

Browse files
committed
fix test
1 parent 0af4a58 commit 670fc6f

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

py/test/selenium/webdriver/common/alerts_tests.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -193,10 +193,7 @@ def test_should_throw_an_exception_if_an_alert_has_not_been_dealt_with_and_dismi
193193

194194
with pytest.raises(UnexpectedAlertPresentException):
195195
driver.find_element(By.ID, "select").click()
196-
alert = _wait_for_alert(driver)
197-
alert.dismiss()
198-
with pytest.raises(NoAlertPresentException):
199-
alert.text
196+
# Alert would be dismissed automatically
200197

201198

202199
def test_prompt_should_use_default_value_if_no_keys_sent(driver, pages):

0 commit comments

Comments
 (0)