我试图仅从hrefs属性的xpath查询中获取值,但我不知道如何声明该查询,充其量我在需要使用getValue()获取实际链接的DomAttr列表中获取ref。WebClient webClient = new WebClient();var hrefs = page.getByXPath("//@href"); // Returns a list of D
;import com.gargoylesoftware.htmlunit.html.HtmlAnchor;import com.gargoylesoftware.htmlunit.html.HtmlFormlinks on page with given class
final List<HtmlAnc