title: Wait for selenium to load after clicking a button
body: <p>I'm experimenting with selenium on python 3.6 a bit and I'm trying to figure out how to wait for the page to load if I'm not using get()</p>
  
  <pre><code>    search_button = driver.find_element_by_id("search-icon-legacy")
      search_button.click()
      videos = driver.find_elements_by_tag_name("ytd-video-renderer")
  </code></pre>
  
  <p>I'm trying to search in Youtube and get all the videos of the search but sometimes videos is empty and sometimes it isn't</p>