Eugene,
Here’s how you do it.
You basically build one standalone program, which spins off the hub, the node and finally runs your test code and then go about setting up breakpoints after which you can run the code in debug mode.
Here’s a sample that shows you what I am talking about
public class Launcher {
public static void main(String[] args) throws Exception {
//Start the hub
//Add more args here to reference your new proxy/servlet
GridLauncherV3.main(new String[]{"-role", "hub"});
//Start the node
//Add more args here to reference your new servlet
GridLauncherV3.main(new String[]{"-role", "node", "-hub", "http://localhost:4444/grid/register"});
RemoteWebDriver driver = null;
try {
driver = new RemoteWebDriver(new URL("http://localhost:4444/wd/hub"), DesiredCapabilities.chrome());
driver.get("http://www.google.com");
} finally {
driver.quit();
}
}
}
The other ways of debugging such as setting up remote debugging is more involved and I have personally found that the above approach is a lot more simpler and straight forward.
Thanks & Regards
Krishnan Mahadevan
"All the desirable things in life are either illegal, expensive, fattening or in love with someone else!"
My Scribblings @ http://wakened-cognition.blogspot.com/
My Technical Scribbings @ http://rationaleemotions.wordpress.com/
--
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/9d56c224-a12b-441e-b623-65ee5bf1c637%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.