Hi sunil, to run in multiple machine you need to have a switch statement or some conditions,stating that if it's Firefox then use this node else some other node.
The node url should differ from one other based on machine add also the parameter like chrome, Firefox etc
--
You received this message because you are subscribed to the Google Groups "Selenium Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to selenium-user...@googlegroups.com.
To post to this group, send email to seleniu...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/6ae51845-60c9-4f81-9c24-d5c6bb4fe60e%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Hi sunil if u don't want to pass parameter from. xml file then remove the remoteurl patameter from openGoogle method.And add ->
driver = new RemoteWebDriver(new URL(remoteurl+"/wd/hub"), cap);
with the correct remote url(ie the individual node based on browser) and include it inside the switch case for individual browser..
Eg..for Firefox:::
switch (browser)
{
case "firefox":
cap = DesiredCapabilities.firefox();
cap.setBrowserName("firefox");
driver = new RemoteWebDriver(new URL(NODE FOR FIREFOX+"/wd/hub"), cap);
You can use it this way.
As you will have node specific to browser, use independently the particular node url for particular browser..
Regards
Pranab Chetri
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/d8a28d15-de92-41c3-b0d7-fc778b2cd822%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/selenium-users/CAKbxU%2BOm%3D-oSNT3zOnBkGai9HrxohOc%3DKwaq2CqqVZfFd2ouAQ%40mail.gmail.com.