导航

[Selenium3+python3.6]自动化测试1-安装

Posted on 2017-03-17 11:01  carol2000  阅读(466)  评论(0编辑  收藏  举报

参考文档: http://www.cnblogs.com/yoyoketang/p/6123890.html

安装环境: win7+Py3.6 +FF45 (ESR version) +selenium 3.3.1 + geckodriver.exe

    1. install py36, config PATH

    2. install get-pip.py,dowload geckodriver.exe,copy to <C:\Python36\Scripts>, config PATH

    3. refer to https://pypi.python.org/pypi/selenium,https://github.com/mozilla/geckodriver/releases

    4.  In python shell:

      >>> from selenium import webdriver
      >>> webdriver.Firefox()
      <selenium.webdriver.firefox.webdriver.WebDriver (session="ee6182e0-b3b1-4968-848
      0-498ced5de154")>