Selenium and cookies banner

hi,
i have been looking on a youtube manual for using selenium, and i have a problem ;

Everytime i ask for google to open with selenium, google gives me the GDPR banner,
and screw the rest of the program. How can i solve this ?
Also when i try to look for the css , or the xpath ; the banner is only a few second and then disapears . and nothing seems to work out well :

Here is my code :

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
import time

options=webdriver.ChromeOptions()
options.add_argument("--disable-popup-blocking")
options.add_argument("--disable-features=SameSiteByDefaultCookies")
options.add_argument("--incognito")
options.add_argument("--disable-features=CookiesWithoutSameSiteMustBeSecure")
service=Service(executable_path="chromedriver.exe")

driver = webdriver.Chrome(service=service,options=options)

driver.get("https://www.google.be/")
cookies_consent_element=WebDriverWait(driver,10).until(EC.presence_of_all_elements_located((By.CSS_SELECTOR,"button.cookie-consent-accept")))
cookies_consent_element.click()
driver.refresh()
time.sleep(5)
import_element = driver.find_element(By.CLASS_NAME,"gLFyf")
import_element.send_keys("Tech with Tim" + Keys.ENTER)
time.sleep(10)
driver.quit()

i could find a solution , which is just when the google wallbanner appears, i automate the “accept” button .

I have tried this: 3. Navigating — Selenium Python Bindings 2 documentation
but it doesn’t seems to work well here .

from selenium import webdriver
from selenium.webdriver.chrome.service import Service
from selenium.webdriver.common.by import By
from selenium.webdriver.support.ui import WebDriverWait
from selenium.webdriver.support import expected_conditions as EC
from selenium.webdriver.common.keys import Keys
import time

options=webdriver.ChromeOptions()
options.add_argument("--disable-popup-blocking")
options.add_argument("--disable-features=SameSiteByDefaultCookies")
options.add_argument("--incognito")
options.add_argument("--disable-features=CookiesWithoutSameSiteMustBeSecure")
service=Service(executable_path="chromedriver.exe")

driver = webdriver.Chrome(service=service,options=options)

driver.get("https://www.google.be/")
cookies_consent_element=WebDriverWait(driver,10).until(EC.element_to_be_clickable((By.CSS_SELECTOR,".QS5gu.sy4vM")))
cookies_consent_element.click()
#driver.refresh()

import_element = driver.find_element(By.CLASS_NAME,"gLFyf")
import_element.send_keys("Tech with Tim" + Keys.ENTER)
time.sleep(10)
driver.quit()

I have long been searching for the right css selector . Because when i ran the program, i had only a limited of time.

So , i changed my settings in chrome for cookies ;
settings/privacy and security / block cookies from a third party in the incognito .
Then i went incognito and opend a new tab.
Then the google banner appeared and stayed.

then go to the accept button : and right click on “inspect”.
And in elements, and styles, you can see the correct css-selector !