当前位置:   article > 正文

Selenium+WebDriver 各浏览器驱动下载与版本对应_火狐版本116.0.2与哪个selenium对应好

火狐版本116.0.2与哪个selenium对应好

一、chromedriver要与chrome版本对应

chromedriver与chrome浏览器版本对应表(记得就会更新):

chromedriver版本支持的Chrome版本
v2.36v64-66
v2.35v62-64
v2.34v61-63
v2.33v60-62
v2.32v59-61
v2.31v58-60
v2.30v58-60
v2.29v56-58
v2.28v55-57
v2.27v54-56
v2.26v53-55
v2.25v53-55
v2.24v52-54
v2.23v51-53
v2.22v49-52
v2.21v46-50
v2.20v43-48
v2.19v43-47
v2.18v43-46
v2.17v42-43
v2.13v42-45
v2.15v40-43
v2.14v39-42
v2.13v38-41
v2.12v36-40
v2.11v36-40
v2.10v33-36
v2.9v31-34
v2.8v30-33
v2.7v30-33
v2.6v29-32
v2.5v29-32
v2.4v29-32

下载chromedriver地址:http://chromedriver.storage.googleapis.com/index.html

 

二、firefox浏览器对应的geckodriver

在linux上 直接yum install firefox 安装即可

下载geckodriver地址:https://github.com/mozilla/geckodriver/releases

firefox与geckodriver版本与selenium版本的对应表
https://firefox-source-docs.mozilla.org/testing/geckodriver/geckodriver/Support.html

三、IE浏览器驱动要和selenium版本对应

下载地址:http://selenium-release.storage.googleapis.com/index.html
根据自己的selenium版本下载相对应的驱动:

查看本地安装的selenium版本: pip show selenium

使用:把文件存放在python根目录下,例如:C:\xxx\Python\Python37下
(需要注意的是,如果要打开IE浏览器的话,需要在浏览器的Internet选项中的安全页里有4个安全选项,Internet、本地Internet、受信任的站点、受限制的站点,这4个里面都有一个启用保护模式,都需要勾选上才可以)

  1. Mac-安装chromedriver
  2. 下载浏览器对应版本的chromedriver
  3. 将文件放在usr/local/bin目录下
  4. PS: 可以直接使用快捷键 command+shift+g 输入usr/local/bin

开始用的Iedriverserver是64位的,但是使用过程中发现,执行的效率太慢了,尤其是输入框中输入字符的时候!简直不能忍于是将Iedriverserver的版本更换为32位的,速度变快

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/一键难忘520/article/detail/934959
推荐阅读
相关标签
  

闽ICP备14008679号