python selenium 入门使用教程-环境安装

前提条件:安装好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目录下

猜你喜欢

转载自blog.csdn.net/weixin_41160534/article/details/103180943
今日推荐