分裂无头选项被拒绝
Splinter headless option rejected
我在 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'
我做错了什么?
问题是 headless 仅从 firefox 55 开始支持。
我在 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'
我做错了什么?
问题是 headless 仅从 firefox 55 开始支持。