Nightwatch - xpath locators stopped working for .waitForElementVisible() and .waitForElementPresent()
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?