I have an application that uses Selenium WebDriver to control FireFox. It runs as a Web Application under Tomcat - yes, this is a bit of an odd architecture, but there are good reasons for doing this.
I've been testing this on my MacBook and it's been working well. My code calls WebDriver, WebDriver calls gecko, Firefox runs, all is good.
I now move to a Centos-7 box, and hit a problem
org.openqa.selenium.SessionNotCreatedException: Unable to find a matching set of capabilities Build info: version: '3.141.59', revision: 'e82be7d358', time: '2018-11-14T08:17:03' System info: host:'xxx', ip: 'a.b.c.d', os.name: 'Linux', os.arch: 'amd64', os.version: '3.10.0-693.el7.x86_64', java.version: '1.8.0_222' Driver info: driver.version: FirefoxDriver
I am using
- Selenium: 3.141.59
- Gecko: geckodriver 0.24.0 ( 2019-01-28)
- Firefox: Mozilla Firefox 60.8.0
I have Xvfb installed and running.
My code simply calls
m_driver = new FirefoxDriver();
which I believe to be the current idiom.
I have added
JAVA_OPTS="-Dwebdriver.gecko.driver=/opt/gecko/geckodriver"
to my tomcat.conf
I see references to this kind of problem from older versions of Firefox and Gecko, and an indication it may be a version problem, but as far as I can tell I'm at the latest versions of everything.
Suggestions for fix or getting some diagnostics please.