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();