contributor

pull/130/head
yihua.huang
parent db0195babb
commit 5e8ca02ec6

@ -146,6 +146,7 @@ Thanks these people for commiting source code, reporting bugs or suggesting for
* [seveniu](https://github.com/seveniu)
* [sebastian1118](https://github.com/sebastian1118)
* [codev777](https://github.com/codev777)
* [fengwuze](https://github.com/fengwuze)
### Thanks:

@ -27,7 +27,11 @@ public class SelectorTest {
@Test
public void testNodes() throws Exception {
Html selectable = new Html(html);
List<Selectable> links = selectable.xpath("//a").nodes();
List<Selectable> divs = html.xpath("//div").nodes();
for (Selectable div : divs) {
System.out.println(div.xpath("//h2").get());
}
assertThat(links.get(0).links().get()).isEqualTo("http://whatever.com/aaa");
}
}

Loading…
Cancel
Save