How Can I wait for an Element will be visible then be clicked in Python Selenium Webdriver?
You have to import the webdriver wait module. you can do something like the example below. Read more abut waits at Waits
from selenium.webdriver.common.by import Byfrom selenium.webdriver.support import expected_conditions as ECfrom selenium.webdriver.support.ui import WebDriverWaitwd = webdriver.Chrome(executable_path="your/path/to/chromedriver")# Access websitewait = WebDriverWait(wd, 10)confirm = wait.until(EC.element_to_be_clickable((By.XPATH, "//span[.='Confirm Sale']")))confirm.click()