Nightwatch - xpath locators stopped working for .waitForElementVisible() and .waitForElementPresent()
Asked 07 September, 2021
Viewed 2.3K times
  • 53
Votes

My tests has been working well for over a year, today I started to get the following error in numerous parts of my test suits:

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

All Xpath locators are valid (worked before, checked in a browser console). If I replace .waitForElementVisible() with verify.elementPresent() - it works

Does anyone have any idea what could've possibly happened?

0 Answer