title: Loop until a specific element is found on the webpage
body: <p>Hi Im using selenium to loop through a webpage after a specified element. The problem is that the element only appears on specific time. And i dont know when.</p>
  
  <p>So the problem I am having is to refresh the page every 5 second to see if the element has appeared.</p>
  
  <pre><code>      while( !done){
              driver.navigate().refresh();
              if( driver.findElement(By.partialLinkText("The Element im looking for")).isDisplayed()){
              driver.findElement(By.partialLinkText("The Element im looking for")).click();
              done=true;
              }
          }
  </code></pre>
  
  <p>I asking if its possible to refresh the page every 5 second to look after the specific element. To run a loop over and refresh the page.</p>