For my UI tests I'm using page factory model with webdriver (version 2.45.0). For a driver I use phantomjs (version 1.9.8). In a separate class I have a method similar to this:
public WebElement waitTillNotVisible(By locator, WebDriver driver){
return new WebDriverWait(driver, 10).
until(ExpectedConditions.invisibilityOfElementLocated(locator));
}
Every time the waitTillNotVisible is called, I'm getting error in the console log,
[ERROR - 2015-04-08T11:30:18.149Z] WebElementLocator - _handleLocateCommand - Element(s) NOT Found: GAVE UP. Search Stop Time: 1428492618108
but the tests continue and pass. What is the reason for such behavior, and how to avoid it? This looks to me like a bug of phantomjs, as no such message appears when testing with FirefoxDriver.