Nearly all websites include Cookie & GDPR banners. These can be troublesome for similar reasons to pop-ups as they can block the Synthetic User Journey software from “seeing” what they need to interact with.
We strongly recommend closing these banners as soon as they appear. The technique for doing this is identical to handling pop-ups; use an IfElement action to allow the banner time to appear and then close it if it does (see the previous lesson for more information).
A more advanced version of this would be to attempt to prevent the banner from appearing in the first place.
Ironically, cookie banners often create their own cookie to record that a user has acknowledged the banner. If the cookie is present then the banner will not appear.
This means that if we can identify the cookie that the banner creates, then we can use an AddCookie action in the Pre-Start actions so that the banner does not appear in the first place.
This blog post explains how to do this: https://www.rapidspike.com/blog/preventing-cookie-consent-banners-in-synthetic-user-journeys/