A script (in python with Selenium Library) that let you choose between 2 "classes" and then sign you in to the website of my teacher
- Understand the code
- Modify it as you want
- Enjoy your beer
- Download Webdriver of your desired browser
- Change the
driver
variable to locate the drivers that you downloaded (to allow the script to launch your browser) - Change the
driver.get(<https://link-to-your.website/>)
parentheses to add your own website (link to the sign in page) - Change this
19. driver.find_element_by_xpath("//input[@id='<USER_FORM_TAG>']").send_keys("<USERNAME>")
- And this
21. driver.find_element_by_xpath("//input[@id='<PASS_FORM_TAG>']").send_keys("<PASSWORD>")
(Sorry for bad explanations, this my very own script that I didn't made it to be changed but it can easily be modified ^^)
Enjoy ! 🌈