fix ut #113
parent
3939074a23
commit
a5d1b56e44
|
@ -28,8 +28,7 @@ public class SelectorTest {
|
||||||
public void testNodes() throws Exception {
|
public void testNodes() throws Exception {
|
||||||
Html selectable = new Html(html);
|
Html selectable = new Html(html);
|
||||||
List<Selectable> links = selectable.xpath("//a").nodes();
|
List<Selectable> links = selectable.xpath("//a").nodes();
|
||||||
for (Selectable link : links) {
|
assertThat(links.get(0).xpath("/@href").get()).isEqualTo("http://whatever.com/aaa");
|
||||||
System.out.println(link.xpath("/@href"));
|
assertThat(links.get(1).xpath("/@href").get()).isEqualTo("http://whatever.com/bbb");
|
||||||
}
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue