Splinter headless option rejected

1k views Asked by At

I got this error while using the Browser object in 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'

What am I doing wrong?

1

There are 1 answers

0
Federico Lolli On BEST ANSWER

The problem is that headless is supported only from firefox 55 onwards.