Url /Ip to pass while creating RemoteWebDriver Url /Ip to pass while creating RemoteWebDriver selenium selenium

Url /Ip to pass while creating RemoteWebDriver


There are basically two usages for the RemoteWebDriver.

  1. You can use the RemoteWebDriver to directly talk to a Selenium Standalone. That is when you would pass it the IP of the node. [ You can see this yourself if you start a standalone using java -jar selenium-server-standalone.jar ] You will see a line as below.

RemoteWebDriver instances should connect to: http://127.0.0.1:4444/wd/hub

  1. The second usage is when you are trying to talk to a Grid. In that case, you would always pass in the IP and Port of the Grid in your url viz., http://<IP>:<Port>/wd/hub