【发布时间】:2017-10-22 02:20:13
【问题描述】:
~/selenium-test$ which geckodriver
/cygdrive/c/Windows/geckodriver
~/selenium-test$ geckodriver --version | head -n1
geckodriver 0.11.1
~/selenium-test$ python -i
Python 2.7.12 (v2.7.12:d33e0cf91556, Jun 27 2016, 15:24:40) [MSC v.1500 64 bit (AMD64)] on win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from selenium import webdriver
>>> driver = webdriver.Firefox()
它会加载 Firefox,但在调用后不再返回。实例化驱动程序后,无法运行任何其他 python 语句。 Windows 上的 Firefox 版本 56.0.1(64 位)。
【问题讨论】:
-
根据Selenium Blog,他们已经停止支持firefox 55+,所以切换到其他浏览器。
标签: python windows selenium firefox webdriver