I'm trying to get to accept a cookie and looked at a similar question. This is how the popup looks: https://i.sstatic.net/FxChW.png I have tried different things. For instance I tried following the others question solution like so:
from selenium import webdriver from selenium.webdriver.common.by import By from selenium.webdriver.support.ui import WebDriverWait from selenium.webdriver.support import expected_conditions as EC browser = webdriver.Firefox() browser.get('https://www.volkskrant.nl/best-gelezen?utm_source=pocket_mylist') wait = WebDriverWait(browser, 4) element = wait.until(EC.element_to_be_clickable((By.CSS_SELECTOR, 'button.message-component:nth-child(1)'))) This however gives the this error. I tried a bunch of different things but I can't seem to select anything on the page (at least nothing from the popup). I know this question has already been asked a couple of times but I did not find a solution. Is there anyone else who encountered this problem and knows how to just accept the cookies as to go to the regular site? thanks in advance!