Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- java -jar C:pathtoselenium-server-standalone-3.7.1.jar -role hub
- java -Dwebdriver.opera.driver=C:pathtooperadriver.exe -
- Dwebdriver.edge.driver=C:pathtoMicrosoftWebDriver.exe -jar
- C:pathtoselenium-server-standalone-
- 3.7.1.jar -role node -hub http://mylocalhost:4444/grid/register
- -browser "browserName=opera,maxInstances=5,platform=Windows" -
- browser "browserName=edge,maxInstances=5,platform=Windows"
- WebDriver driver;
- String nodeURL;
- nodeURL = "http://mylocalhost:5555/wd/hub";
- DesiredCapabilities capabilities = new DesiredCapabilities();
- capabilities.setBrowserName("opera");
- capabilities.setPlatform(Platform.WINDOWS);
- driver = new RemoteWebDriver(new URL(nodeURL), capabilities);
- driver.get("https://www.google.ru/");
- WebDriver driver;
- String nodeURL;
- nodeURL = "http://mylocalhost:5555/wd/hub";
- DesiredCapabilities capabilities = new DesiredCapabilities();
- capabilities.setBrowserName("opera");
- capabilities.setPlatform(Platform.WINDOWS);
- driver = new RemoteWebDriver(new URL(nodeURL), capabilities);
- driver.get("https://www.google.ru/");
- org.openqa.selenium.WebDriverException: unknown error: cannot find Opera binary
- org.openqa.selenium.SessionNotCreatedException: Unable to create new service: ChromeDriverService
Add Comment
Please, Sign In to add comment