I have tried to implement something then wait until a special text not more displayed on the webpage.
My solution for waitForTextPresent
works fine:
driver.findElement(By.tagName("body")).getText().contains("text");
But I search the solution to negate it, please help me.
I usually use the invisibilityOfElementLocated, like this: