dismiss-cookie-banner

Dismiss cookie consent banners on web pages after navigation.

8|Updated May 13, 2026
One-click install
npx skills add https://github.com/bettyguo/browser-skills --skill dismiss-cookie-banner
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: dismiss-cookie-banner
Source: https://github.com/bettyguo/browser-skills/tree/main/skills/dismiss-cookie-banner
Command: npx skills add https://github.com/bettyguo/browser-skills --skill dismiss-cookie-banner

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Dismiss cookie banners automatically on first interaction after navigation to streamline page interactions.

Core Features & Use Cases

  • Detects common cookie consent UIs (OneTrust, Cookiebot, etc.) and dismisses banners so the agent can proceed.
  • Uses deterministic selector lists and DOM readiness to reliably click an accept/close control.
  • Idempotent behavior: repeated invocations have no adverse effect after the first dismissal.

Quick Start

Navigate to a page with a cookie banner and invoke this skill to automatically dismiss it.

Frequently Asked Questions about dismiss-cookie-banner

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automatically dismiss cookie consent banners in Playwright?

You can automatically dismiss cookie consent banners in Playwright by targeting common consent UIs like OneTrust and Cookiebot. The skill waits for DOM readiness, identifies banners using selectors like #onetrust-banner-sdk, and clicks accept or close controls from a prioritized list.

What is the best way to handle OneTrust cookie pop-ups during web automation?

The best way to handle OneTrust cookie pop-ups during web automation is to use deterministic DOM markers such as #onetrust-banner-sdk. Once the DOM is ready, the automation attempts to click an accept or close control within a short timeout and verifies the banner is dismissed.

Does this cookie banner dismissal approach work with Cookiebot?

Yes, this cookie banner dismissal approach works with Cookiebot. It detects common cookie consent UIs by targeting elements like .cc-window and uses a prioritized selector list to click accept or close controls, verifying the banner is dismissed before proceeding.

Can I use this skill repeatedly on the same page without causing errors?

Yes, you can use this skill repeatedly on the same page without causing errors. It features idempotent behavior, meaning repeated invocations have no adverse effect after the first dismissal, ensuring safe retries during web automation flows.

Why does my automated script fail when a cookie consent banner blocks the page?

Your automated script fails because a cookie consent banner blocks underlying page elements. This skill resolves the issue by detecting UIs via dom_markers such as [aria-label*='cookie' i], clicking an accept or close control, and verifying dismissal before continuing.