When using remote webDriver / Selenium Grid the command from client (Language Bondings ) has to be sent to Selenium Server when it's a remote setup Or to the Selenium HUB where as HUB will send the command serialized JSON to NODE which will deserializes and use the command.
driver = new RemoteWebDriver(new URL(nodeAddress), desiredCapabilities);RemoteWebDriver remoteDriver = (RemoteWebDriver) driver;Capabilities actualCapability = remoteDriver.getCapabilities();System.out.println(actualCapability.getVersion());
... and getBrowserName .. etc.
No comments:
Post a Comment