I have a field that dynamically changes it\'s text. I need a way to wait for the text to be changed. I\'m not aware about what text will appear, but I know what text is curr
You can Try ExpectedConditions function textToBePresentInElement and add a not, like,
WebDriverWait wait = new WebDriverWait(driver, 30);
WebElement element = driver.findElement(By.id("foo"));
wait.until(ExpectedConditions.not(
ExpectedConditions.textToBePresentInElement(element,"textToBePresent")));