@throws Exception if the test fails
()
| 73 | * @throws Exception if the test fails |
| 74 | */ |
| 75 | @Test |
| 76 | public void click() throws Exception { |
| 77 | final WebClient client = createWebClient(""); |
| 78 | |
| 79 | final HtmlPage page = client.getPage(URL_FIRST); |
| 80 | final HtmlArea area = page.getHtmlElementById("third"); |
| 81 | |
| 82 | // Test that the correct value is being passed back up to the server |
| 83 | final HtmlPage thirdPage = area.click(); |
| 84 | assertEquals("third", thirdPage.getTitleText()); |
| 85 | } |
| 86 | |
| 87 | /** |
| 88 | * @throws Exception if the test fails |
no test coverage detected