1from selenium.webdriver.common.by import By
2from selenium.webdriver.support.ui import WebDriverWait
3from selenium.webdriver.support import expected_conditions as EC
4
5
6element = WebDriverWait(driver, 30).until(
7 EC.presence_of_element_located((By.ID, "myDynamicElement"))
8)
9
10