It’s my first time using Selenium. I have done a code that allows me to open a webpage, log in go to the site of the webpage I want, upload a document… Everything works properly. But at the very last point when I try to download a gif it seems that selenium does not see it or it is unable to press the button.
TimeoutException(message, screen, stacktrace) This is the error that appears.
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()
This are the lines with which I am trying to press that button.
The webpage is https://www.chess.com/analysis?tab=analysis, where after inserting a PGN and going to share->Animated Gif there is a download button. When I run the script it goes just up to this last point and the only thing missing is pressing the download button.
I have tried changing the selector to xpath and the way to select it. I have augmented time of wait, I have checked if it was in an iframe and its not. Sorry if the info provided is vague. I am no expert in programming and for sure I don’t have deep knowledge on Selenius, so forgive me if I have done something wrong that is very straight forward.
Thanks a lot in advance
aerochess is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.