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()
search_button = driver.find_element_by_id("search-icon-legacy")
search_button.click()
videos = driver.find_elements_by_tag_name("ytd-video-renderer")
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