I am doing automation testing selenium with python and I got stuck here. I was unable to click on the date. Please help me to get the code to click on the date.
enter code here
#day
driver.find_element(By.XPATH("//span[@class='flatpickr-day' and text()='4']")).click()
time.sleep(10)