美文网首页
Python+Selenium 环境配置

Python+Selenium 环境配置

作者: 微笑的AK47 | 来源:发表于2019-01-24 14:03 被阅读0次

    前期准备:      

    1.安装Python     (建议3.6 比较稳定) 

    2.   安装selenium包      (以下二选一)

      方法一:pycharm 中安装

      方法二: cmd  pip  install semenium

    3.与浏览器对应的驱动  (驱动下载后直接放在Python安装路径中   调用时就不用写路径了)

    Chrome:https://sites.google.com/a/chromium.org/chromedriver/downloads

        备用地址:http://chromedriver.storage.googleapis.com/index.html

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

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

    eg:这样就可以启动浏览器了

    相关文章

      网友评论

          本文标题:Python+Selenium 环境配置

          本文链接:https://www.haomeiwen.com/subject/eqbyjqtx.html