参考文档: http://www.cnblogs.com/yoyoketang/p/6123890.html
安装环境: win7+Py3.6 +FF45 (ESR version) +selenium 3.3.1 + geckodriver.exe
-
install py36, config PATH
-
install get-pip.py,dowload geckodriver.exe,copy to <C:\Python36\Scripts>, config PATH
-
refer to https://pypi.python.org/pypi/selenium,https://github.com/mozilla/geckodriver/releases
-
In python shell:
>>> from selenium import webdriver
>>> webdriver.Firefox()
<selenium.webdriver.firefox.webdriver.WebDriver (session="ee6182e0-b3b1-4968-848
0-498ced5de154")>