Skip to content

Instantly share code, notes, and snippets.

@infiniteregrets
Created September 26, 2021 01:24
Show Gist options
  • Save infiniteregrets/48b92d5b58bd368e0376d85ea9c3c1d2 to your computer and use it in GitHub Desktop.
Save infiniteregrets/48b92d5b58bd368e0376d85ea9c3c1d2 to your computer and use it in GitHub Desktop.
from selenium import webdriver
import time
driver = webdriver.Chrome()
driver.get("https://maccheck.mcmaster.ca/")
time.sleep(5)
email = driver.find_element_by_id("i0116")
email.send_keys("") #Your email goes here
next_b1 = driver.find_element_by_id("idSIButton9")
next_b1.click()
time.sleep(1)
password = driver.find_element_by_id("i0118")
password.send_keys("") #Your password goes here
next_b2 = driver.find_element_by_id("idSIButton9")
next_b2.click()
heck_yes = driver.find_element_by_id("idSIButton9")
heck_yes.click()
time.sleep(10)
option = driver.find_element_by_xpath('//*[@id="publishedCanvas"]/div/div[2]/div/div/div[1]/div/div/div/div/div/div/div/div/div/div/div/div[4]/div/div/div/div/button')
option.click()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment