python-selenium (1、配置环境)

准备如下:

1、python以及开发工具PyCharm

2、浏览器以及对应的浏览器驱动

3、下载selenium工具包

 

注意:

浏览器与浏览器驱动 需要版本一致,以goole为例,

https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-downloads.json

这个网站里面有对应谷歌浏览器和驱动的下载地址

驱动下载完成之后,解压,将驱动文件复制粘贴到浏览器文件地址中,

配置环境变量,将goole的文件路径配置进path中

 

 

 

https://googlechromelabs.github.io/chrome-for-testing/known-good-versions-with-
posted @ 2025-01-04 21:14  小杨同学906  阅读(18)  评论(0)    收藏  举报