Perhaps the problem is that the data has not time to boot
About expectations read here
about expectations
I did something like this
from selenium import webdriver
import selenium.webdriver.support.ui as ui
browser = webdriver.Firefox()
wait = ui.WebDriverWait(browser,30)
browser.execute_script(")#the script was switching to another page in my case so your on the other (driver.find_element_by_xpath("/html/body/div...]").click())
wait.until(lambda browser: browser.find_element_by_id('someID'))
some_info = browser.find_element_by_id('someID').get_attribute("outerHTML")
stackoverflow.com/questions/15122864/selenium-wait... - Titus_Kuhlman76 commented on July 8th 19 at 16:20