I’m new to using Selenium and have successfully automated a process to log in to a website, navigate to the desired page, and upload a document. However, I’m encountering an issue when trying to download a GIF. Selenium fails to click the download button, resulting in a TimeoutException(message, screen, stacktrace)
. Here is the code snippet that I’m using to click the button:
download_button = WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "button.cc-button-component.cc-button-primary.download-button-button")))
download_button.click()
The webpage I’m working with is: https://www.chess.com/analysis?tab=analysis. After uploading a PGN
file and navigating to Share -> Animated Gif
, there is a download button. The script runs smoothly until this point, where it fails to click the download button.
I’ve tried different selectors like XPath
, increased the wait time, and verified that it’s not within an iframe. Despite these efforts, the issue persists. Any advice or solutions would be greatly appreciated. Thank you!
aerochess is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.