Answer the question
In order to leave comments, you need to log in
What is the Selenium geckodriver error on startup?
There is a server on CentOS without a graphical shell. I am using python3.4 + selenium.
When starting geckodriver, the error "selenium.common.exceptions.SessionNotCreatedException: Message: Unable to find a matching set of capabilities" crashes. Can
you please tell me what's wrong?
Answer the question
In order to leave comments, you need to log in
I apologize for the lack of information. Here are the versions of the tools I use:
Geckodriver 0.20.0
Firefox 59.0.2
Selenium 3.11.0
Python 3.4
and so it starts
from selenium import webdriver
from selenium.webdriver.common.desired_capabilities import DesiredCapabilities
firefox_capabilities = DesiredCapabilities.FIREFOX
firefox_capabilities['marionette'] = True
browser = webdriver.Firefox(capabilities = firefox_capabilities)
browser.get('https://google.com')
browser.quit()
display.stop()
binary = FirefoxBinary('/firefox')
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question