title: How do I refresh a stale Selenium element if I don't have the original XPath
body: <p>Is there a way (If using Java) to refresh an existing element that has become stale. Something like, I have an Angular app that removes and re-adds an element. Sometimes this hits a race condition and gives me a stale state. I would like to avoid a sleep to slow things down, however, I am fine with something that tries every 500 ms or something. I see foundBy but when I try something like </p>
  
  <pre><code>driver.findElement(By.xpath(element.foundBy))
  </code></pre>
  
  <p>But this doesn't work. How do I refresh if I am not sure what xPath was initially used?</p>