public void testInvalidLogin() {
Form form = browser.currentPage().form("form");
form.field("login").type("invalid_login");
form.field("password").type("invalid_password");
form.submit();
Page page = browser.currentPage();
Assert.assertEquals("Login", page.title());
Assert.assertTrue(page.div("errors").contains("Invalid login!"));