如何解决Selenium IDE Java 记录 findElement(By.LinkText) 但当脚本运行声称它找不到元素时 JUnit 失败
Selenium IDE 版本:3.17.0
Mozilla Firefox 版本:86.0
网络驱动程序:Gecko 0.29
日食:2020-12 (4.18.0)
操作系统:Windows 10 1903 x64
我在 Stack 上检查过的地方:
Selenium Web-Driver can't find element (Selenium IDE does find it)
Selenium IDE can't find an element
页面检查的相关部分仅显示以下内容:
<a class="" _ngcontent-bjt-c16="" title="Title goes here.">
<i class="icon glyphicon glyphicon-stop" _ngcontent-bjt-c16="">
::before
</i>
Title goes here.
</a>
我运行 JUnit 测试并得到 NoSuchElementException: Unable to locate element
脚本记录了这个:
driver.findElement(By.linkText("Title goes here.")).click();
我很确定这不是等待问题。任何见解表示赞赏。
版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。