@throws Exception if the test fails
()
| 323 | * @throws Exception if the test fails |
| 324 | */ |
| 325 | @Test |
| 326 | public void xpath() throws Exception { |
| 327 | final String html |
| 328 | = "<?xml version=\"1.0\"?>\n" |
| 329 | + "<foo>\n" |
| 330 | + " <foofoo name='first'>something</foofoo>\n" |
| 331 | + " <foofoo name='second'>something else</foofoo>\n" |
| 332 | + "</foo>"; |
| 333 | final XmlPage xmlPage = testDocument(html, MimeType.TEXT_XML); |
| 334 | assertEquals(1, xmlPage.getByXPath("//foofoo[@name='first']").size()); |
| 335 | } |
| 336 | |
| 337 | /** |
| 338 | * Test for issue #1820. |
no test coverage detected