operachromiumdriver
operachromiumdriver copied to clipboard
Unable to configure Opera browser in Selenium Grid
Hi,
im trying to enable Opera browser on selenium grid.
What HW i have (GRID server):
- OS: Windows server 2012 r2
- Opera version: 42
- I downloaded operachromiumdriver (https://github.com/operasoftware/operachromiumdriver/releases) 0.2.2 version
Setups i tried:
- selenium-server-standalone-3.0.1.jar:
Im running this server with such setup (command line):
java -Dwebdriver.opera.driver=D:\SeleniumGrid\Opera\operadriver.exe -jar ../Server/selenium-server-standalone-3.0.1.jar -role node -nodeConfig nodeOperaConfig.json -port 4552
- In this setup when starting slenium node i see error in cosonle: "Driver class not found: com.opera.core.systems.OperaDriver" And if i try to connect using RemoteWebDriver it says no matching driver found
- selenium-server-standalone-2.45.0.jar:
- Im running this server with such setup (command line):
java -Dos.name=windows -Dwebdriver.opera.webdriver=operadriver.exe -jar ../Server/selenium-server-standalone-3.0.1.jar -role node -nodeConfig nodeOperaConfig_2.json -port 4552
- In this setup i see no errors in cosole regarding opera driver
But when i try to use it with RemoteWebDriver
browserCapabilities = DesiredCapabilities.Opera(); browserCapabilities.SetCapability("opera.binary", "C:\\Program Files (x86)\\Opera\\launcher.exe"); IWebDriver remoteWebDriver = new RemoteWebDriver(seleniumHubAddress, browserCapabilities);i get following error: "Exception: Could not start Opera: launcher unable to start binary"
any help would be appreciated. What im doing wrong and why i cant even connect Opera node to 3.0.1 server without errors ? (I have setuped IE, FF and CH browsers successfully on 3.0.1 server and executed tests from c# code)
more detailed steps and exact errors can be seen at -> stackoverflow thread
Having the same issue with nighwatchJS using selenium and operdriver for automation tests. Any ideas?
Is there a solution for this, I`m having the same issue
Try changing browserName from "opera" to "operablink". It seems that "opera" refers to the old Opera before they transitioned to blink (Chromium's rendering engine).