Я хочу получить следующий HTML-текст, который добавляется динамически:

Я попробовал выполнить следующее в Selenium:
Код: Выделить всё
while True:
try:
text2 = driver.find_element(By.XPATH, "//div[@data-role='clock']").text
print(text2)
except NoSuchElementException:
print("Class1 not found! Trying again!")
continue
Подробнее здесь: https://stackoverflow.com/questions/783 ... -html-code