Opera browser in Selenium grid: Driver class not found -
i'm trying setup environment selenium grid execute selenium test on remote machine. browser can`t work opera. configured same other browsers. when start node shows driver class not found.
i`m running windows 8.1 enterprise 64 bit on host computer
the node , host on windows 7 enterprise 32 bit service pack 1
on host opera installed, opera webdriver in c:/gui-tests/drivers/operadriver.exe, tried 32 bit webdriver , 64 bit webdriver , i`m still getting error:
13:30:37.169 info - driver class not found: com.opera.core.systems.operadriver 13:30:37.169 info - driver provider com.opera.core.systems.operadriver registration skipped: unable create new instances on machine. 13:30:37.178 info - driver class not found: com.opera.core.systems.operadriver 13:30:37.178 info - driver provider com.opera.core.systems.operadriver not registered
if knows problem please me.
extra information environment
starting hub:
java -jar selenium-server-standalone-3.3.1.jar -role hub -hubconfig hubconfig.json
my hub config:
{ "host": ip, "maxsessions": 5, "port": 4444, "cleanupcycle": 5000, "timeout": 300000, "newsessionwaittimeout": -1, "servlets": [], "prioritizer": null, "capabilitymatcher": "org.openqa.grid.internal.utils.defaultcapabilitymatcher", "throwoncapabilitynotpresent": true, "nodepolling": 180000, "platform": "windows" }
starting node:
java -jar selenium-server-standalone-3.3.1.jar -role node -nodeconfig nodeconfig.json
my node config file:
{ "capabilities": [ { "browsername": "opera", "platform": "windows", "maxinstances": 5, "seleniumprotocol": "webdriver", "webdriver.opera.driver": "c:/gui-tests/drivers/operadriver.exe" } ], "proxy": "org.openqa.grid.selenium.proxy.defaultremoteproxy", "maxsession": 1, "port": 5555, "register": true, "registercycle": 5000, "hub": "http://localhost:4444", "nodestatuschecktimeout": 5000, "nodepolling": 5000, "role": "node", "unregisterifstilldownafter": 60000, "downpollinglimit": 2, "debug": false, "servlets" : [], "withoutservlets": [], "custom": {} }
answering own question because discovered answer, , i`m hoping googles on question :)
well turns out opera driver legacy driver, won't need it.
you need opera browser , operachromiumdriver. in c# define capabilities as:
capabilities = new desiredcapabilities(); capabilities.setcapability(capabilitytype.browsername, "operablink"); capabilities.platform = new platform(platformtype.windows); _webdriver = new remotewebdriver(_gridserveruri, capabilities);
on node:
{ "capabilities": [ { "browsername": "operablink", "platform": "windows", "maxinstances": 5, "seleniumprotocol": "webdriver" } ], "proxy": "org.openqa.grid.selenium.proxy.defaultremoteproxy", "maxsession": 1, "port": 5555, "register": true, "registercycle": 5000, "hub": "http://localhost:4444", "nodestatuschecktimeout": 5000, "nodepolling": 5000, "role": "node", "unregisterifstilldownafter": 60000, "downpollinglimit": 2, "debug": false, "servlets" : [], "withoutservlets": [], "custom": {} }
i hope useful @ least useful me.
note:
- operachromiumdriver in path variable
- my node , hub running windows 7
Comments
Post a Comment