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 (将#修改为@)