alexschimpf / Snkrs-Bot

Selenium bot for Nike Snkrs site
The Unlicense
843 stars 290 forks source link

Cookie issue #85

Open giacomo1029 opened 3 years ago

giacomo1029 commented 3 years ago

Hello, I have a problem with the cookie, because in the code there isn't the command to allow the cookie. Can you help me, or update the code. Thanks

leoniewgnr commented 2 years ago

This one worked for me. Add the two lines in main.py in the login definition after line 219

LOGGER.info("Accepting cookies") WebDriverWait(driver, 10).until(EC.element_to_be_clickable((By.XPATH,'//*[@id="hf_cookie_text_cookieAccept"]'))).click()