Apr-16-2021, 10:45 AM
i was successful after some research you suggested to me, here is my code i hope it is correct.
#Download try: dossier = driver.find_element_by_xpath(f"//*[@title={date} ]") dossier.click() download = driver.find_element_by_xpath("//span[contains(.,'Télécharger')]") download.click() driver.close() driver.quit() except NoSuchElementException: #Erreur lors de l'execution print ("Pas de fichier") driver.close() driver.quit()