use of com.gargoylesoftware.htmlunit.html.HtmlButtonInput in project javaee7-samples by javaee-samples.
the class UserTest method testButton.
@Test
public void testButton() throws IOException {
HtmlButtonInput button = (HtmlButtonInput) page.getElementById("button1");
assertEquals("Login4", button.asText());
HtmlPage output = button.click();
assertEquals("HTTP GET (Login)", output.getTitleText());
}
Aggregations