Monday, December 20, 2010

Stop selenium Server(java method and through browser)

There are two ways to stop selenium server,

java method:


public void tearDown() throws Exception {
selenium.stop();
if(seleniumServer != null)
{
try{
selenium.shutDownSeleniumServer();
seleniumServer .stop();
seleniumServer = null;
}
catch(Exception e)
{
e.printStackTrace();
}
}
}


Browser Method

http://localhost:4444/selenium-server/driver/?cmd=shutDownSeleniumServer



Hope it helps!!!

No comments:

Post a Comment