webdriver the Selenium Import from
Import Time
Session # Start with the browser
Driver = webdriver.Chrome ()
# Browser Operation
driver.get ( "http://www.baidu.com")
# Browser maximize
driver.maximize_window ()
# refresh
driver.refresh ()
# back to the previous page
driver.get ( "http://lemfix.com")
driver.back ()
the time.sleep (3)
# forward
driver.forward ()
the time.sleep (3 )
# close the current window
# driver.close ()
# close the browser session, the entire browser is closed, closed chromndriver.exe win10 see chromn process
# driver.quit ()