当前位置:网站首页>编程技巧│selenium 更新 chromedriver 驱动
编程技巧│selenium 更新 chromedriver 驱动
2022-08-11 00:37:00 【极客飞兔】
查看浏览器版本
selenium要想使用chromedriver驱动,必须版本要正确- 在浏览器的导航栏中输入
chrome://version - 可以看到当前浏览器版本为
98.0.4758.82

下载驱动
- 驱动下载地址:http://chromedriver.storage.googleapis.com/index.html
- 找到对应版本的文件夹进入,点击自己系统的进行下载
- 其中包含了
linux、mac、windows多版本的驱动 - 如果你使用的是
mac版本的就选择mac,其中m1代表的是M1芯片版本的mac,如果你是windows就下载win32即可


安装驱动
- 解压后,将其放到指定目录中即可,如果有旧版本,直接覆盖
mac安装目录:/usr/local/binwindwos安装目录:python的安装目录/Scripts/

是否安装成功
- 黑窗口中直接运行:
chromedriver --version,看版本是否对应即可 - 或者写个简单的自动化测试代码:
webdriver.Chrome().get(url),查看是否正常运行即可

边栏推荐
猜你喜欢
随机推荐
小程序onPageNotFound的坑
2022.8.10-----leetcode.640
【爬虫】scrapy创建运行爬虫、解析页面(嵌套url)、自定义中间件(设置UserAgent和代理IP)、自定义管道(保存到mysql)
微信小程序内部A页面向内嵌H5页面跳转,并且传参
Lens filter---about day and night dual-pass filter
Shell编程三剑客之sed
两个链表的第一个公共节点——LeetCode
16. 最接近的三数之和
input输入框超出部分用省略号表示以及判断内容是否有超出(PC端)
[Excel knowledge and skills] Convert text numbers to numeric format
容器技术真的是环境管理的救星吗?
使用 BeanUtils 做属性拷贝,性能有点拉胯!
分布式.性能优化
嵌入式软件打log的一些心得
Apache Commons Configuration Remote Code Execution Vulnerability (CVE-2022-33980) Analysis & Reproduction
How engineers treat open source
Kunpeng compilation and debugging and basic knowledge of native development tools
异常:try catch finally throws throw
Why do programming languages have the concept of variable types?
池化技术有多牛?来,告诉你阿里的Druid为啥如此牛逼!









