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

问题:

具体报错如下图

简单说是定位不到元素。

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

原文地址:https://www.cnblogs.com/insist8089/p/9198507.html