title: How to loop over refreshing a webpage each time I finish processing some data?
body: <p>I launch Firefox with the URL of a webpage that uses HTTP basic authentication with Selenium. Once I log in, I see only one line of text that is read from a database to which I can not access. So I retrieve that line of text and save to a text file. <br><br>
  I need to refresh the page using Selenium in order to get the next text line from the database displayed on the page, and I save it again. All this I did it. But I do not know how to refresh the page (looping over the refresh process) after I read each line until the end of the database. Here is my code (valid for the 2 first lines only):</p>
  
  <pre><code>from selenium import webdriver
  profile=webdriver.FirefoxProfile()
  profile.set_preference('network.http.phishy-userpass-length','255')
  driver=webdriver.Firefox(firefox_profile=profile)
  driver.get("https://my_username:my_password@my_websitew.com/page.php")
  r=driver.find_element_by_xpath("html").text
  with open('urls.txt','a') as f:
      f.write(r)
  </code></pre>
  
  <p>How can I resolve my problem ?  </p>