Selenium Webdriver: Wait Until Element is Present (Python)

Selenium Webdriver: Wait Until Element is Present (Python)

To wait for an element to be visible in Python use WebDriverWait and an expected condition as shown below.

wait = WebDriverWait(self.driver, 10)
element = wait.until(ec.visibility_of_element_located((By.ID, "searchInput")))

Leave a reply

Your email address will not be published. Required fields are marked*

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
5 + 12 =

Solve this simple math problem and enter the result. E.g. for 1+3, enter 4.