标签:rom inf use class dmi 模块 win chrome 路径
pip install selenium
查看chrome版本
访问http://chromedriver.storage.googleapis.com/index.html,进入与chrome相同版本的路径(下图红线标注),再下载驱动包(以windows为例)
解压chromedriver_win32.zip得到chromedriver.exe
# coding=utf-8 from selenium import webdriver path = r"C:\Users\Administrator\Downloads\chromedriver.exe" #chrome驱动的路径 url = "https://www.baidu.com" browser = webdriver.Chrome(path) #创建browser对象,打开chrome browser.get(url) #打开一个网页
执行结果:
标签:rom inf use class dmi 模块 win chrome 路径
原文地址:https://www.cnblogs.com/vaon/p/11708547.html