Commit a5d1b56e authored by yihua.huang's avatar yihua.huang

fix ut #113

parent 3939074a
......@@ -28,8 +28,7 @@ public class SelectorTest {
public void testNodes() throws Exception {
Html selectable = new Html(html);
List<Selectable> links = selectable.xpath("//a").nodes();
for (Selectable link : links) {
System.out.println(link.xpath("/@href"));
}
assertThat(links.get(0).xpath("/@href").get()).isEqualTo("http://whatever.com/aaa");
assertThat(links.get(1).xpath("/@href").get()).isEqualTo("http://whatever.com/bbb");
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment