Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- from time import sleep
- from selenium import webdriver
- from selenium.webdriver.chrome.service import Service
- from webdriver_manager.chrome import ChromeDriverManager
- from selenium.webdriver.common.by import By
- from selenium.webdriver.support import expected_conditions as EC
- from selenium.webdriver.support.wait import WebDriverWait
- from selenium.webdriver.chrome.options import Options
- options = Options()
- options.add_argument('--headless')
- browser = webdriver.Chrome(service=Service(ChromeDriverManager().install()))
- browser.get('https://www.udemy.com/join/login-popup/')
- timeout = 20
- email = WebDriverWait(browser, timeout).until(EC.presence_of_element_located((By.ID, "email--1")))
- sleep(20)
Advertisement
Add Comment
Please, Sign In to add comment