title: How to refresh a page on browser using selenium-webdriver?
body: <p>Follow the below part of the code:</p>
  
  <pre><code>driver.get "https://example.com/"
  
  element = driver.find_element :name =&gt; "username"
  element.send_keys "*****"
  element = driver.find_element :name =&gt; "password"
  element.send_keys "*****"
  element.submit
  </code></pre>
  
  <p>Now point is when the <code>driver</code> opened the URL on the browser, Some times
  the next page to which username and password has to be put by the
  script, not coming- which causes the script to failed. Some intermediate
  page is coming asking us to click on 'retry button' or 'refresh the
  page'. Thus the script whenever such case occurred stopped execution, as
  not getting the mentioned element.</p>
  
  <p>So is there any way to refresh that intermediate page with "sleep"
  before going to the "Log-in" page, so that script can run in one go?</p>