📌  相关文章
📜  chromedriver 自动安装程序 - 任何代码示例

📅  最后修改于: 2022-03-11 15:00:25.558000             🧑  作者: Mango

代码示例1
from selenium import webdriver
import chromedriver_autoinstaller


chromedriver_autoinstaller.install()  # Check if the current version of chromedriver exists
                                      # and if it doesn't exist, download it automatically,
                                      # then add chromedriver to path

driver = webdriver.Chrome()
driver.get("http://www.python.org")
assert "Python" in driver.title