from selenium import webdriver
import time

browser = webdriver.Chrome()
browser.get('https://www.baidu.com')
# browser.get('https://www.python.org')
browser.get('https://www.zhihu.com')
time.sleep(1)
browser.back()  # 后退
time.sleep(1)
browser.forward()  # 前进
time.sleep(1)
browser.close()
4c62a56b884feeb967bd5a50458d36eab95176c2
<mask token>

<mask token>
browser.get('https://www.baidu.com')
browser.get('https://www.zhihu.com')
time.sleep(1)
browser.back()
time.sleep(1)
browser.forward()
time.sleep(1)
browser.close()

<mask token>
browser = webdriver.Chrome()
browser.get('https://www.baidu.com')
browser.get('https://www.zhihu.com')
time.sleep(1)
browser.back()
time.sleep(1)
browser.forward()
time.sleep(1)
browser.close()

from selenium import webdriver
import time
browser = webdriver.Chrome()
browser.get('https://www.baidu.com')
browser.get('https://www.zhihu.com')
time.sleep(1)
browser.back()
time.sleep(1)
browser.forward()
time.sleep(1)
browser.close()

from selenium import webdriver
import time

browser = webdriver.Chrome()
browser.get('https://www.baidu.com')
# browser.get('https://www.python.org')
browser.get('https://www.zhihu.com')
time.sleep(1)
browser.back()  # 后退
time.sleep(1)
browser.forward()  # 前进
time.sleep(1)
browser.close()