title: (Python, selenium) implicit and explicit wait not working
body: <p>I am trying to write a webscraping program that: </p>
  
  <p>1) types a name in a search bar</p>
  
  <p>2) presses enter</p>
  
  <p>3) finds the first search result, which is a link to another page </p>
  
  <p>4) clicks the first result</p>
  
  <p>5) finds a specified element on the resultant page</p>
  
  <p>6) copies that element</p>
  
  <p>7) prints that element in PyCharm</p>
  
  <p>8) Repeats for each entry in a preloaded array (set to "names")</p>
  
  <p>Below is the part of the code designed to do this.</p>
  
  <pre><code>from selenium import webdriver
  import time
  import xlrd
  
  
  driver = webdriver.Chrome("path")
  
  i=0
  while i &lt; len(names):
  
      a = names[i]
      driver.set_page_load_timeout(25)
      driver.get("https://www.healthgrades.com/")
  
      driver.find_element_by_id("search-term-selector-child").send_keys(a)
      driver.find_element_by_id("search-term-selector- 
      child").send_keys(u'\ue007')
  
      driver.implicitly_wait(20)
      first = driver.find_element_by_class_name('uCard__name')
      first.click()
  
      driver.implicitly_wait(20)
      elem= driver.find_element_by_class_name("office-street1")
  
      entry1 = elem.text
      time.sleep(1)
      print(entry1)
  i += 1
  </code></pre>
  
  <p>When I run the program, it looks like the code finishes step 4 (line 13) before the element in that step becomes a link; the error I receive most commonly is</p>
  
  <pre><code>selenium.common.exceptions.NoSuchElementException: Message: no such element: Unable to locate element: {"method":"class name","selector":"office-street1"}
  </code></pre>
  
  <p>I think that means it gets through find_element_by_class_name and executes the click. But when I watch the automated webpage, I notice that the next page never opens. </p>
  
  <p>To fix this, I've tried to put an implicit wait (line 15) before searching for the uCard element, but I still get the same error.</p>
  
  <p>Other attempted solutions:</p>
  
  <ul>
  <li><p>Using an explicit wait to wait for the uCard_name element</p></li>
  <li><p>Clearing the cache/deleting search history with each loop</p></li>
  <li><p>Using <a href="https://stackoverflow.com/questions/26566799/how-to-wait-until-the-page-is-loaded-with-selenium-for-python?utm_medium=organic&amp;utm_source=google_rich_qa&amp;utm_campaign=google_rich_qa">WebDriverWait</a> to stall program</p></li>
  </ul>
  
  <p>Additional Info:</p>
  
  <ul>
  <li><p>Working in Pycharm, Python version 3.6</p></li>
  <li><p>Windows 10, 64-bit</p></li>
  </ul>