问题:

具体报错如下图

报错:selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element:

 

简单说是定位不到元素。

解决办法:暂时不熟悉XPath的语法,认为可能是脚本中 XPath 描述(采用了相对元素定位方法)有误 , 通过xpath-helper重归抓取了元素的完整xpath路径, 重新运行脚本,成功。

 

相关文章:

  • 2022-12-23
  • 2021-04-17
  • 2022-01-12
  • 2022-12-23
  • 2021-07-03
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2021-04-16
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-06-04
相关资源
相似解决方案