pythonGUI自动化:selenium环境的搭建

1. python中安装好selenium包  pip install selenium

2. 查看chrome、firefox、ie的版本

3. 根据浏览器的版本下载对应的driverserver

  chrome:http://npm.taobao.org/mirrors/chromedriver/

  firefox:https://github.com/mozilla/geckodriver/releases/

  ie:http://selenium-release.storage.googleapis.com/index.html

4. 下载解压后,将chromedriver.exe , geckodriver.exe , Iedriver.exe放到Python的安装目录(确保python、各浏览器的安装目录已添加到环境变量中)

原文地址:https://www.cnblogs.com/badbadboyyx/p/12150150.html