前提条件:安装好python3.5及以上版本、安装好PyCharm
安装步骤:
1、安装selenium
PyCharm-》File-》Settings-》Project Interpreter-》+-》selenium
2、安装webdriver
各大浏览器webdriver地址可参考:https://docs.seleniumhq.org/download/
Firefox:https://github.com/mozilla/geckodriver/releases/
Chrome:https://sites.google.com/a/chromium.org/chromedriver/ 或者
http://chromedriver.storage.googleapis.com/index.html
IE:http://selenium-release.storage.googleapis.com/index.html
注:webdriver需要和对应的浏览器版本以及selenium版本对应
3、webdriver安装路径
WIN :复制webdriver到Python安装目录下
MAC:复制webdriver到/usr/local/bin目录下