1from selenium import webdriver
2from selenium.webdriver.common.by import By
3from selenium.webdriver.support.ui import WebDriverWait
4from selenium.webdriver.support import expected_conditions as EC
5
6driver = webdriver.Firefox()
7driver.get("http://somedomain/url_that_delays_loading")
8try:
9 element = WebDriverWait(driver, 10).until(
10 # Please Change These Down Below
11 EC.presence_of_element_located((By.AnyElementYouWant, "ElementName"))
12 )
13finally:
14 driver.quit()
15