title: Is there a way to check if element was reloaded with WebDriver (java)?
body: <p>I need to verify an element after every update.Ex: Lowrtemperature:7.54 after some time the value changes to Lowrtemperature:3.79, and then to other value here the value is changing after some time(time varies) each time. but i need the driver to get the updated value after the change .how to get the element using selenium webdriver ,here page is not reloaded only element value is reloaded</p>
  
  <pre><code>public boolean waitForTextToChange(WebElement element, String currentText) {
                  return !element.getText().equals(currentText);
              }
  
  
  public String Lowertemperature_14_L(){
      WebElement element = driver.findElement(By.xpath(".//*[@id='webForm:sensorContainer']/div[@class='tile tile23 show-all hide-tiny']/div[@class='meteo-line1']/div[1]/div[@class='icon']/div[@class='icon-label0']"));
     String currentText = element.getText();
     WebDriverWait wait = new WebDriverWait(driver, 10);
     wait.until(waitForTextToChange(element, currentText));
     return currentText;
     }
  </code></pre>