1from selenium import webdriver
2
3PATH = 'Path to web browser driver...'
4driver = webdriver.Chrome(PATH) # Selenium also supports edge and firefox
5driver.get("url to website")
1from selenium import webdriver
2from selenium.webdriver.common.keys import Keys
3
4driver = webdriver.Chrome('./chromedriver')
5driver.get("https://www.python.org")
6print(driver.title)
7search_bar = driver.find_element_by_name("q")
8search_bar.clear()
9search_bar.send_keys("getting started with python")
10search_bar.send_keys(Keys.RETURN)
11print(driver.current_url)
12driver.close()