com.gargoylesoftware.htmlunit.html.HtmlHeading1 Java Examples
The following examples show how to use
com.gargoylesoftware.htmlunit.html.HtmlHeading1.
You can vote up the ones you like or vote down the ones you don't like,
and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example #1
Source File: JadeIT.java From ozark with Apache License 2.0 | 5 votes |
@Test public void testUsesModel() throws Exception { String path = webUrl + "jade?user=mvc%d"; HtmlPage page = webClient.getPage(String.format(path, 0)); assertTrue(page.getTitleText().contains("Jade")); for (int i = 0; i < 10; i++) { // just to ensure that not the whole page is cached page = webClient.getPage(String.format(path, i)); HtmlHeading1 h1 = page.getFirstByXPath("//html/body/h1"); assertTrue(h1.asText().contains("mvc" + i)); } }