Federico Lolli
Federico Lolli

Reputation: 173

Splinter headless option rejected

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?

Upvotes: 2

Views: 1120

Answers (1)

Federico Lolli
Federico Lolli

Reputation: 173

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

Upvotes: 3

Related Questions