Guest User

Untitled

a guest
Nov 24th, 2017
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.40 KB | None | 0 0
  1. java -jar C:pathtoselenium-server-standalone-3.7.1.jar -role hub
  2.  
  3. java -Dwebdriver.opera.driver=C:pathtooperadriver.exe -
  4. Dwebdriver.edge.driver=C:pathtoMicrosoftWebDriver.exe -jar
  5. C:pathtoselenium-server-standalone-
  6. 3.7.1.jar -role node -hub http://mylocalhost:4444/grid/register
  7. -browser "browserName=opera,maxInstances=5,platform=Windows" -
  8. browser "browserName=edge,maxInstances=5,platform=Windows"
  9.  
  10. WebDriver driver;
  11. String nodeURL;
  12. nodeURL = "http://mylocalhost:5555/wd/hub";
  13. DesiredCapabilities capabilities = new DesiredCapabilities();
  14. capabilities.setBrowserName("opera");
  15. capabilities.setPlatform(Platform.WINDOWS);
  16. driver = new RemoteWebDriver(new URL(nodeURL), capabilities);
  17. driver.get("https://www.google.ru/");
  18.  
  19. WebDriver driver;
  20. String nodeURL;
  21. nodeURL = "http://mylocalhost:5555/wd/hub";
  22. DesiredCapabilities capabilities = new DesiredCapabilities();
  23. capabilities.setBrowserName("opera");
  24. capabilities.setPlatform(Platform.WINDOWS);
  25. driver = new RemoteWebDriver(new URL(nodeURL), capabilities);
  26. driver.get("https://www.google.ru/");
  27.  
  28. org.openqa.selenium.WebDriverException: unknown error: cannot find Opera binary
  29.  
  30. org.openqa.selenium.SessionNotCreatedException: Unable to create new service: ChromeDriverService
Add Comment
Please, Sign In to add comment