Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- WebDriverWait(browser, 3).until(EC.alert_is_present(),
- 'Timed out waiting for alert')
- alert = browser.switch_to.alert
- alert.accept() [or alert.dismiss()]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement