1Just go to the following link:
2
3https://web.bii.a-star.edu.sg/~liangzhu/2017/11/02/linuxcommandline/automatetheboringstuffwithpython_new.pdf
4
5note that you will need to wait a few seconds before you can access it
1#you can use automation in python using following tools
2#Web Automation use selenium driver
3#GUI Automation use pyautogui tool
4
5#Selenium Automation Example
6#Download chrome driver for Selenium
7# https://chromedriver.chromium.org/downloads
8
9#############Lanuch WebDriver Function - Begin #############
10#Make sure the downloaded driver is in the same path where your running code
11#else you will get an error.
12
13from selenium import webdriver
14# store the browser driver
15chrome_browser = launch_chromebrowser('chromedriver')
16
17def launch_chromebrowser(browsername):
18 # load the browser driver
19 return webdriver.Chrome(browsername)
20#############Lanuch WebDriver Function - End #############
21