title: Cookie banner reappears immediately after being accepted
body: <p>I am attempting to wait for the presence of a cookie banner on a website and hit accept on it. The cookie banner seems to be detected and is accepted, but it then reappears and prevents any further actions from being carried out until the process is carried out again. I cannot work out the reason for why.</p>
  <p>Is there a way that I can continually accept the cookies until this banner does not appear before I continue scraping the page?</p>
  <pre><code>from selenium import webdriver
  from selenium.webdriver.support.ui import WebDriverWait
  from selenium.webdriver.common.by import By
  from selenium.webdriver.support import expected_conditions as EC
  
  PATH = 'C:\Program Files (x86)\chromedriver.exe'
  driver = webdriver.Chrome(PATH)
  wait = WebDriverWait(driver, 20)
  page = &quot;https://www.sainsburys.co.uk/shop/gb/groceries/meat-fish/meatandfish-essentials#langId=44&amp;storeId=10151&amp;catalogId=10241&amp;categoryId=474595&amp;parent_category_rn=13343&amp;top_category=13343&amp;pageSize=60&amp;orderBy=TOP_SELLERS%7CSEQUENCING&amp;searchTerm=&amp;beginIndex=0&amp;facet=&quot;
  driver.get(page)
  
  
  # wait for cookies banner
  
  wait.until(EC.visibility_of_element_located((By.CSS_SELECTOR, &quot;#onetrust-accept-btn-handler&quot;))).click()
  </code></pre>