Try to use explicit wait. Sometimes it takes time to load the element or page
from selenium.webdriver.support import expected_conditions as EC
wait = WebDriverWait(driver, 15)
date = wait.until(EC.element_to_be_clickable((By.Xpath, '//*[@id="calendarbtn"]/small")))
Try to use explicit wait. Sometimes it takes time to load the element or page
from selenium.webdriver.support import expected_conditions as EC
wait = WebDriverWait(driver, 15)
date = wait.until(EC.element_to_be_clickable((By.Xpath, '//*[@id="calendarbtn"]/small")))