daily pastebin goal
71%
SHARE
TWEET

Untitled

a guest Jun 19th, 2018 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. driver = webdriver.Chrome(CHROME_DRIVER_PATH)
  2.     driver.get("https://za.gl/Kyblj")
  3.     try:
  4.         WebDriverWait(driver, 20).until(EC.alert_is_present(), 'Timed out waiting for PA creation confirmation popup to appear.')
  5.         alert = driver.switch_to.alert
  6.         alert.accept()
  7.         print("alert accepted")
  8.     except TimeoutException:
  9.         print("no alert")
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top