Selenium是广泛使用的模拟浏览器运行的库,它是一个用于Web应用程序测试的工具。 Selenium测试直接运行在浏览器中,就像真正的用户在操作一样,并且支持大多数现代 Web 浏览器。
chrome://version/
http://chromedriver.storage.googleapis.com/index.html

https://googlechromelabs.github.io/chrome-for-testing/
119
解压之后,将chromedriver.exe文件复制并粘贴到对应的python文件目录中,之后便不再需要设置路径,python会自动进行查找。

selenium打开百度网址from selenium import webdriver
driver = webdriver.Chrome() # 代码在执行的时候回自行去寻找chromedriver.exe(在python目录下寻找),不再需要制定chromedriver.exe路径
driver.get("http://www.baidu.com")
print(driver.current_url)
成功打开!
