无法单击A< a>标签 - 硒
在尝试使用NewRelic合成监视器(基于Selenium)的链接单击链接时,它似乎已经开始失败了几天。错误的屏幕截图显示了在链接上徘徊的控件,但没有单击。
.then(function() {
log(10, 'clickElement "Dashboard"');
return $browser.waitForAndFindElement(By.xpath('//*[contains(text()," Dashboard ")]'), DefaultTimeout); })
.then(function (el) { el.click(); })
元素:
<a _ngcontent-avd-c527="" cdkmonitorelementfocus="" rel="noopener noreferrer" queryparamshandling="merge" class="name trimmedTextWithEllipsis ng-star-inserted" href="**" target="_self" pbi-focus-tracker-idx="17"> Dashboard <!----><!----><!----><!----></a>
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我的“最喜欢”的自动化问题。您可以尝试:
https://wwwww.selenium.dev/documentation /documentation/webdriver/webdriver/webdriver/actions_api/actions_api/mouse/
My "favourite" automation issues. You can try:
https://www.selenium.dev/documentation/webdriver/actions_api/mouse/