setAlertHandler(new AlertHandler() {
public void handleAlert(Page page, String message) {
throw new AssertionError("Alert dialog poped up: "+message);
}
});
<BUG>setTimeout(60*1000);</BUG>
}
public WebClient login(String username, String password) throws Exception {
HtmlPage page = goTo("/login");
HtmlForm form = page.getFormByName("login");
form.getInputByName("j_username").setValueAttribute(username);
form.getInputByName("j_password").setValueAttribute(password);
<BUG>form.submit(null);
return this;</BUG>
}

setAlertHandler(new AlertHandler() {
public void handleAlert(Page page, String message) {
throw new AssertionError("Alert dialog poped up: "+message);
}
});
}
public WebClient login(String username, String password) throws Exception {
HtmlPage page = goTo("/login");
HtmlForm form = page.getFormByName("login");
form.getInputByName("j_username").setValueAttribute(username);
form.getInputByName("j_password").setValueAttribute(password);
HtmlFormUtil.submit(form, null);
return this;
}
