from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait as wait
from selenium.webdriver.support import expected_conditions as EC
wait(driver, 10).until(visibility_of_element_located((By.XPATH,
    '//button[text()="Continue"]'))).click()
Error when trying to click a button using Selenium