Splinter无头选项被拒绝



我在Splinter中使用浏览器对象时遇到了此错误:

>>> from splinter import Browser
>>> brow = Browser('firefox', headless=True)
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/usr/local/lib/python3.6/dist-packages/splinter/browser.py", line 63, in Browser
    return driver(*args, **kwargs)
  File "/usr/local/lib/python3.6/dist-packages/splinter/driver/webdriver/firefox.py", line 49, in __init__
    timeout=timeout, **kwargs)
TypeError: __init__() got an unexpected keyword argument 'headless'
__init__() got an unexpected keyword argument 'headless'

我在做什么错?

问题是,无头仅从Firefox 55开始支持。

相关内容

  • 没有找到相关文章

最新更新