---
title: "Cookie Banner"
sidebarTitle: "Cookie Banner"
description: "Test cookie banners with TestDriver"
icon: "cookie"
---

import TestPrereqs from "/snippets/test-prereqs.mdx";

<iframe
  width="600"
  height="400"
  src="https://www.youtube.com/embed/VUmjDQ4rM9M"
  title="Testing Cookie Banners with TestDriver"
  frameborder="0"
  allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
  allowfullscreen
></iframe>

---

# Testing Cookie Banners with TestDriver

With TestDriver, you can automate the testing of cookie banners on your web application. This scenario demonstrates how to check if a cookie banner appears when a user visits the site and how to interact with it.

<TestPrereqs />

## Scenario overview

1. **Visit the Site**: The test will navigate to the target URL.
2. **Check for Cookie Banner**: It will verify if the cookie banner is displayed.
3. **Decline Cookies**: The test will simulate a user clicking the "Decline All" button on the cookie banner.
