微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

Nightwatch - xpath 定位器停止为 .waitForElementVisible() 和 .waitForElementPresent() 工作

如何解决Nightwatch - xpath 定位器停止为 .waitForElementVisible() 和 .waitForElementPresent() 工作

我的测试已经运行了一年多,今天我的测试服的许多部分开始出现以下错误

Error: Error while running "waitForElementVisible" command: "Error: Provided locating strategy "//span[contains(text(),'Element')]" is not supported for .waitForElementVisible(). It must be one of the following: id,css selector,link text,partial link text,tag name,xpath

所有 Xpath 定位器都是有效的(以前工作过,在浏览器控制台中检查过)。如果我用 verify.elementPresent() 替换 .waitForElementVisible() - 它可以工作

有人知道可能发生了什么吗?

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。