// create server from an installed instance
serverTasks.createServer();
serverTasks.startServer();
EclipseSelenium selenium = new EclipseSelenium();
selenium.start();
selenium.open( "http://localhost:8080/console/" );
selenium.waitForPageToLoad( "2000" );
selenium.type("j_username", "system");
selenium.type("j_password", "manager");
selenium.click("submit");
serverTasks.stopServer();
// remove the server
serverTasks.removeServer();
selenium.stop();
success = true;
}
catch (Exception e) {
e.printStackTrace();