转自https://testerhome.com/topics/14220

一、driver

方法1:

String js = "$('a[alis|=\"billdetailqry\"]').click()";
((JavascriptExecutor) webDriver).executeScript(js);

方法2:

By.cssSelector(“tagName[name=‘elementContent']”)

 二、htmlunit

page2.getDocumentElement().getElementsByAttribute("span","class","nums_text").get(0).asText();

 

相关文章:

  • 2021-11-06
  • 2021-09-10
  • 2021-06-16
  • 2021-06-28
  • 2022-12-23
  • 2021-08-16
  • 2022-02-08
  • 2022-12-23
猜你喜欢
  • 2022-02-24
  • 2022-12-23
  • 2021-11-11
  • 2022-02-03
  • 2021-11-17
  • 2022-12-23
  • 2021-08-21
相关资源
相似解决方案