How to use explicit wait in Selenium Python?
Explicit Wait:
- Application for a specific element and for a specific condition.
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
wait = WebDriverWait(driver, time_in_seconds)
element = wait.until(EC.element_to_be_clickable((By.locator_name, "locator_value")))
element.click()
How to use explicit wait in Selenium Python?
ReplyDelete