多语言展示
当前在线:1863今日阅读:103今日分享:49

如何使用selenium控制谷歌浏览器

在python3环境下,使用selenium自动控制谷歌浏览器。
工具/原料
1

python3 selenium

2

chromedriver 谷歌浏览器

方法/步骤
1

电脑安装好python3环境,可到python官网下载python3安装包。使用pip install selenium命令安装selenium。

2

安装好谷歌浏览器,并下载对应版本的chromedriver.exe

注意事项

谷歌浏览器版本需要和chromedriver版本一致

推荐信息