Here is previous post related to this:
How to get dynamic html source code for hidden div with python? (Selenium + beautifulsoup issues)
I try getting the content of span from a dynamically generated html using selenium.
With XPath of the span I get a timeout exception.
With XPath of the html, I would expect the whole source code, but I get a string like website content copied from browser view (no source code).
Timeout values tried: 1,3,5,15,50, etc.
Any ideas what goes wrong?
url = <website_url>
# init ...
driver = webdriver.Chrome()
driver.maximize_window()
driver.get(url)
result_string = WebDriverWait(driver, 15).until(EC.presence_of_element_located((By.XPATH, '/html')),f'Exception get element').text
print("$$$: ", result_string)
The url is this one: ‘https://wertpapiere.ing.de/Investieren/Aktie/Analyse/’