a guest Jul 17th, 2019 57 Never
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()]
RAW Paste Data