operachromiumdriver icon indicating copy to clipboard operation
operachromiumdriver copied to clipboard

Unable to configure Opera browser in Selenium Grid

Open erinev opened this issue 8 years ago • 4 comments

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:

  1. 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 nodeopera301config
  • 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
  1. 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 nodeopera245config
  • 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)

erinev avatar Jan 14 '17 08:01 erinev

more detailed steps and exact errors can be seen at -> stackoverflow thread

erinev avatar Jan 16 '17 20:01 erinev

Having the same issue with nighwatchJS using selenium and operdriver for automation tests. Any ideas?

marioskamperis avatar Mar 08 '17 13:03 marioskamperis

Is there a solution for this, I`m having the same issue

tvdende avatar Apr 07 '17 09:04 tvdende

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

joeyparrish avatar Apr 11 '17 17:04 joeyparrish