TRoboto / datacamp-downloader

Download your completed courses on Datacamp easily!
MIT License
178 stars 52 forks source link

WebDriverException: Message: unknown error: failed to change window state to 'minimized', current state is 'normal' #76

Open sBajeot opened 2 months ago

sBajeot commented 2 months ago

Hi, I face a problem using datacamp courses. I got the error:

ErrorDatacamp-downloader2

The error seems coming from self.session.driver.minimize_window() in get_profile_data in datacamp_utils.py:

ErrorDatacamp-downloader

My configuration is python 3.11.5, selenium 4.19.0, undetected-chromedriver 3.5.5 and Chrome version 124. I precise also that I changed import undetected_chromedriver.v2 as uc to import undetected_chromedriver as uc in session.py and I'm able to connect myself using datacamp set-token.

Does anyone have an idea how to solve it? Thanks

KingChrist1 commented 3 days ago

check this forked repo and I've made some downgrades https://github.com/KingChrist1/datacamp-download-course