欢迎您访问程序员文章站本站旨在为大家提供分享程序员计算机编程知识!
您现在的位置是: 首页  >  IT编程

Selenium模块的安装

程序员文章站 2022-03-03 12:19:06
Selenium模块 1.安装selenium python2:pip install selenium python3:pip install selenium 2.设置浏览器驱动 浏览器| 驱动 | Chrome:| https://sites.google.com/a/chromium.org ......

selenium模块

1.安装selenium

  • python2:pip install selenium
  • python3:pip install selenium

2.设置浏览器驱动

解压后必须与浏览器的exe放置于同一文件夹中

浏览器 驱动
chrome:
edge:
firefox:
safari:

google chrome 稳定版 离线安装包 官方本地下载地址:

google chrome v75.0.3770.90 无更新功能版 64位

sha1:4bd8278a9d89d3790f201d4eda02d31b2f9886fb

sha256:b578b4e4e186505d5d3e156857bbdf72b19c01baf50651a5c33544d75ba36824

http://dl.google.com/release2/chrome/xalboe3dwkm_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://dl.google.com/release2/chrome/xalboe3dwkm_75.0.3770.90/75.0.3770.90_chrome_installer.exe

http://www.google.com/dl/release2/chrome/xalboe3dwkm_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://www.google.com/dl/release2/chrome/xalboe3dwkm_75.0.3770.90/75.0.3770.90_chrome_installer.exe

http://redirector.gvt1.com/edgedl/release2/chrome/xalboe3dwkm_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://redirector.gvt1.com/edgedl/release2/chrome/xalboe3dwkm_75.0.3770.90/75.0.3770.90_chrome_installer.exe

google chrome v75.0.3770.90 无更新功能版 32位

sha1:ba586e1db8806375ab5fb1844d2a8faa10993fac

sha256:c3dfe179f2ec20266ceb8af98ebbb19c884952062eea0a913821a48c645642dd

http://dl.google.com/release2/chrome/an_q_rfoooct_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://dl.google.com/release2/chrome/an_q_rfoooct_75.0.3770.90/75.0.3770.90_chrome_installer.exe

http://www.google.com/dl/release2/chrome/an_q_rfoooct_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://www.google.com/dl/release2/chrome/an_q_rfoooct_75.0.3770.90/75.0.3770.90_chrome_installer.exe

http://redirector.gvt1.com/edgedl/release2/chrome/an_q_rfoooct_75.0.3770.90/75.0.3770.90_chrome_installer.exe

https://redirector.gvt1.com/edgedl/release2/chrome/an_q_rfoooct_75.0.3770.90/75.0.3770.90_chrome_installer.exe

google chrome v75.0.3770.90 mac版

sha1:37182a996912013f3796681e2f604b31cbc685fc

sha256:5aeed86a65c110132dd32eebc5d5d79c68538973be2effa55c382e00dce1898d

http://dl.google.com/release2/chrome/ipecbndgvt8_75.0.3770.90/googlechrome-75.0.3770.90.dmg

https://dl.google.com/release2/chrome/ipecbndgvt8_75.0.3770.90/googlechrome-75.0.3770.90.dmg

http://www.google.com/dl/release2/chrome/ipecbndgvt8_75.0.3770.90/googlechrome-75.0.3770.90.dmg

https://www.google.com/dl/release2/chrome/ipecbndgvt8_75.0.3770.90/googlechrome-75.0.3770.90.dmg

http://redirector.gvt1.com/edgedl/release2/chrome/ipecbndgvt8_75.0.3770.90/googlechrome-75.0.3770.90.dmg

https://redirector.gvt1.com/edgedl/release2/chrome/ipecbndgvt8_75.0.3770.90/googlechrome-75.0.3770.90.dmg

google chrome 官方带更新功能版 网盘:

google chrome v75.0.3770.90驱动:

3.碰到的问题

  • chrome 浏览器默认安装c盘,会因为权限不够没法进行访问,这时候我们需要把整个文件夹移出c盘
  • 驱动必须和浏览器版本匹配且位置放置于浏览器exe文件的同目录下