Created
July 8, 2017 08:12
-
-
Save whalehulk/82ae102d0830ea18c39fa2129337a869 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from selenium import webdriver | |
from selenium.webdriver.common.by import By | |
from selenium.webdriver.support.ui import WebDriverWait | |
from selenium.webdriver.support import expected_conditions as EC | |
username = 'email' | |
password = 'password' | |
browser = webdriver.Chrome() | |
browser.get(("https://www.udemy.com/join/login-popup/?displayType=ajax&display_type=popup&showSkipButton=1&returnUrlAfterLogin=https%3A%2F%2Fwww.udemy.com%2F&next=https%3A%2F%2Fwww.udemy.com%2F&locale=en_US")) | |
login = browser.find_element_by_id('id_email') | |
login.send_keys(username) | |
secret = browser.find_element_by_id('id_password') | |
secret.send_keys(password) | |
signInButton = browser.find_element_by_id('submit-id-submit') | |
signInButton.click() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment