I try to recover some elements in a web page with selenium but the page_source I'm getting it does not have that elements loaded.
Find element returns elem.text empty and driver.page_source does not have the id titulotramitedocu.
What am I missing?
Code:
URL = "https://seu.conselldemallorca.net/fitxa?key=91913"
driver = webdriver.Chrome()
driver.get(URL)
try:
driver.implicitly_wait(20)
elem = driver.find_element(By.ID,"titulotramitedocu")
print(elem.text)
finally:
driver.quit()
I also tried with a wait..
element = WebDriverWait(driver, 10).until(
EC.presence_of_element_located((By.ID, "titulotramitedocu"))
)