Using: Selenium 3.4.3, Firefox 54, geckodriver 0.17.0
I am getting this error message by trying to create a Firefox webdriver in python, on my virtual machine which is using the precise64 box. My laptop is running Mac OS Sierra. This is my error message:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/firefox/webdriver.py", line 152, in __init__
keep_alive=True)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 98, in __init__
self.start_session(desired_capabilities, browser_profile)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 188, in start_session
response = self.execute(Command.NEW_SESSION, parameters)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/webdriver.py", line 256, in execute
self.error_handler.check_response(response)
File "/usr/local/lib/python2.7/dist-packages/selenium/webdriver/remote/errorhandler.py", line 194, in check_response
raise exception_class(message, screen, stacktrace)
selenium.common.exceptions.WebDriverException: Message: Unable to find a matching set of capabilities
I'm running browser = webdriver.Firefox()
.
I have tried specifying the path to the geckodriver executable in my vagrant directory, i.e. browser = webdriver.Firefox('/vagrant/')
, but it is still unable to find a matching set of capabilities.
My geckodriver is in the same directory as the script I'm trying to run. I have added the vagrant folder to my path as well.
I believe everything I'm using is up to date, according to the various posts I've seen like this one.
Does anyone know why I could be getting this issue? Thank you in advance.