title: Selenium - Leave webdriver click after 10 seconds
body: <p>Do you know a way to execute an action for a limited duration?
  In my case I am using webdriver.
  when I validate a form action is well done but the page runs in a loop. I would like to after clicking wait 10 seconds and then force a refresh of the page.</p>
  
  <pre><code>// action that I would leave after 10 seconds
  driver.findElement(By.id("submit")).click();    
  
  driver.manage().timeouts().implicitlyWait(10, TimeUnit.SECONDS);
  driver.navigate().refresh(); 
  </code></pre>
  
  <p>I would, after clicking, go to the next step after 10 sec because the treatment is blocked because no answer, I want it to go to the next line even if no answer.</p>
  
  <p>Thanks for ur help.</p>