1

For a web-test i call an online-shop which uses a special GDPR-cookie-banner. When I call this online store in a normal chrome browser, it is loaded and displayed.

However, when I call this online store with the test software (chromedriver, Selenium, Python), it is loaded but not displayed.

What is the reason and what can I do to display this banner?

Online-shop: https://www.uwaldu.de/

Browser snapshot with normal chrome browser:

enter image description here

Browser snapshot with webdriver:

enter image description here

undetected Selenium
  • 151,581
  • 34
  • 225
  • 281
Marvin.H
  • 67
  • 9

1 Answers1

1

Not sure why you won't see the special GDPR-cookie-banner. But when I access the website using a Selenium driven ChromeDriver initiated Browsing Context the GDPR-cookie-banner is displayed perfectly everytime.

Code Block:

options = Options()
options.add_argument("start-maximized")
options.add_experimental_option("excludeSwitches", ["enable-automation"])
options.add_experimental_option('useAutomationExtension', False)
options.add_argument('--disable-blink-features=AutomationControlled')
s = Service('C:\\BrowserDrivers\\chromedriver.exe')
driver = webdriver.Chrome(service=s, options=options)
driver.get("https://uwaldu.de/")

Browser Snapshot:

GDPR

undetected Selenium
  • 151,581
  • 34
  • 225
  • 281
  • Thank you very much. After I added "--disable-blink-features=AutomationControlled" to my driver, I was able to see the banner. Without this argument, the banner stays away. Thank you very much for this hint. – Marvin.H Dec 28 '21 at 18:02