I
I
Igor Mitrakov2018-04-02 05:11:57
Python
Igor Mitrakov, 2018-04-02 05:11:57

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

3 answer(s)
I
Igor Mitrakov, 2018-04-02
@igormitrakov

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

D
Dmitry Eremin, 2018-04-02
@EreminD

code show how to start

E
Evgeniy _, 2018-04-03
@GeneD88

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()

?
PS: the error you are getting - occurs at this place:
binary = FirefoxBinary('/firefox')

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question