title: Selenium-Python: How do I make my WebDriverWait a few seconds before reloading a page?
body: <p>So I have a section of code that checks a part of a webpage to see if the status has been changed to get to the next step in the script. It refreshes the page if it hasn't, and ideally, I would like the script to wait at this webpage for about 5-10 seconds before it refreshes the page again. Here is my current loop for this:</p>
  
  <pre><code>orderElem = driver.find_element(By.CSS_SELECTOR, "dd.Production.Status")
  
  while(orderElem.text != "Output Complete"):
          WebDriverWait(driver, 10)
          driver.refresh()
          WebDriverWait(driver, 5).until(
              EC.visibility_of_element_located((By.CSS_SELECTOR, "dd.Production.Status"))
          )
          orderElem = driver.find_element(By.CSS_SELECTOR, "dd.Production.Status")
  </code></pre>