I am trying to click the Accept button on the pop-up for cookies. Here's the code that I have tried:
driver.get(r'https://www.studydrive.net/')
WebDriverWait(driver, 20).until(EC.element_to_be_clickable((By.CSS_SELECTOR, "button.sc-gtsrHT.iETHdM"))).click()
Here's the error:
raise TimeoutException(message, screen, stacktrace)
selenium.common.exceptions.TimeoutException: Message:
I have also tried using X-path but was not able to click on the button. Any help is highly appreeciated.