Skip to content
This repository was archived by the owner on Jun 7, 2023. It is now read-only.

Commit d1c5f94

Browse files
committed
Fix: Update based on a deprecation warning.
1 parent d53d322 commit d1c5f94

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

runestone/parsons/test/test_parsons.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ def wait_and_close_alert(self, timeout = 3):
171171
WebDriverWait(self.driver, timeout).until(EC.alert_is_present(),
172172
'Timed out waiting for PA creation ' +
173173
'confirmation popup to appear.')
174-
alert = self.driver.switch_to_alert()
174+
alert = self.driver.switch_to.alert
175175
alert.accept()
176176
return True
177177
except TimeoutException:

0 commit comments

Comments
 (0)