page.getByXPath("//*[@href='http://www.example.com/index.do/abc/1_*'");
我是否需要转义任何字符?这个xpath看起来是否正确?
我试图让有格局网页上的所有链接AHREF:所以这些都应该被检索
http://www.example.com/index.do/abc/1_
:
http://www.example.com/index.do/abc/1_asdf-asdfasdf
http://www.example.com/index.do/abc/1_223
http://www.example.com/index.do/abc/1_as.php
http://www.example.com/index.do/abc/1_2222233
是的,这就是为什么它在我的答案旁边是'contains'。 – Welbog 2010-01-05 20:18:11