all_dates = driver.find_elements(By.XPATH, "//div[@class='datepicker-days']/table/tbody/tr/td") for date in all_dates: if date == driver.find_element(By.XPATH, "//div[@class='datepicker-days']/table/tbody/tr/td[not(contains(@class, 'disabled'))]"): date.click() break else: driver.refresh()
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)