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.
.contains()returns a boolean, so negate it as usual!driver.findElement(By.tagName("body")).getText().contains("text");