from splinter import Browser
browser = Browser()
browser.visit('http://www.google.com/')
直接从他们的教程开始,它所做的只是打开一个窗口,我没有收到任何错误。我已经重新安装了几次,如果它打开一个浏览器窗口并且我没有收到任何错误,那么它显然安装正确,那么为什么会发生这种情况?
from splinter import Browser
browser = Browser()
browser.visit('http://www.google.com/')
直接从他们的教程开始,它所做的只是打开一个窗口,我没有收到任何错误。我已经重新安装了几次,如果它打开一个浏览器窗口并且我没有收到任何错误,那么它显然安装正确,那么为什么会发生这种情况?
There are incompatibility issues between certain selenium
(that splinter
uses under-the-hood) and Firefox
versions, see related threads:
There are other options, but you can solve it by upgrading selenium (2.45 is currently latest):
pip install --upgrade selenium
and installing Firefox
36 (currently latest).