seleniumselenium-webdriverselenium-gridselenium-grid2

selenium-server-standalone.jar maven dependency


I am using Maven as a build tool. On selniumhq site I can see selenium-server-standalone.jar file but I could not found related Maven dependency. Is there any maven dependency for selenium standalone file? latest selenium standalone file is : selenium-server-standalone-3.2.0.jar

Note : I want to execute code on Remote desktop machine using Selenium grid (which require aforementioned jar file)


Solution

  • I think you should refer to this manual first: http://www.seleniumhq.org/docs/07_selenium_grid.jsp#starting-selenium-grid

    i.e. in order to use grid you need you need to create grid instance first by running commands from command line, then you need to register node, again by using command line, and after that from your code you need to create instance of RemoteWebDriver (refer to this page for more details: http://www.seleniumhq.org/docs/04_webdriver_advanced.jsp#remotewebdriver).

    If, for some reason, you want to to create grid\register nodes from your project maybe it makes sense to download it to your resources folder, execute it from there using Runtime (refer to this link for more details: http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html) and then connect to it. But I would strongly recommend avoiding doing so.