I am trying to configure Selenium Grid 2 on Jenkins via the Selenium Plugin and I have the Chrome Driver working without issue.
The Firefox driver is currently out of action due to version 48+ not working with the current Selenium Web Drivers as explained in this question.
I have configured a command line application that uses the RemoteWebDriver
class to connect to my hub and use the DesiredCapability
class to determine which node and browser to use.
I have added an entry into the Selenium Grid configuration for Opera that uses 1 max instance, and the path to the Opera browser. Other values exist for Chrome only.
The Opera option results in the following error, which to me makes absolutely no sense:
Unhandled Exception: System.InvalidOperationException: The best matching driver provider org.openqa.selenium.edge.EdgeDriver can't create a new driver instance for Capabilities [{browserName=opera, version=, platform=WINDOWS}]
Why would Selenium think that the best match for a browser called 'opera' is the EdgeDriver? Never mind the fact that my node doesn't have any configuration for driving Edge.
Has anyone encounterd/resolved a similar issue to this before?
Edit
The logs when starting up Selenium Grid are as follows:
Starting Selenium Grid
[Jenkins] $ "C:\Program Files (x86)\Jenkins\jre\bin\java" -cp "C:\Program Files (x86)\Jenkins\war\WEB-INF\lib\remoting-2.62.jar" hudson.remoting.Launcher -cp "C:\Program Files (x86)\Jenkins\plugins\selenium\WEB-INF\lib\selenium-server-standalone-2.53.0.jar;C:\Program Files (x86)\Jenkins\plugins\selenium\WEB-INF\lib\htmlunit-driver-standalone-2.20.jar" -connectTo localhost:61007