Skip to content

[enhancement] Plan 38: Cookie Banner Auto-Dismiss #281

Description

@Delqhi

Problem

Many survey sites show GDPR/cookie consent banners that block the survey flow. Bot tries to click survey elements behind the banner → wrong targets → stuck.

Browser-use's LLM agent handles consent implicitly. Our deterministic solver needs explicit banner detection + dismissal.

Plan

plans/38-cookie-banner-dismiss.md

Key Changes

  1. Banner detection patterns — Selector lists for OneTrust, CookieYes, CookieConsent, generic; text-based fallbacks (Akzeptieren, Accept All)
  2. Auto-dismiss before DOM scan — In solve_page(), check for + dismiss banner BEFORE question detection
  3. CDP click — isTrusted=true click on accept button
  4. Cookie strategy config--cookie-strategy accept|reject|ignore (default: accept — matches real user behavior)
  5. Banner state cache — Remember which selector worked per domain

Validation

  • Survey site with OneTrust banner → auto-dismissed in <2s
  • No false positives (real survey buttons not dismissed)
  • Cached selector works on revisit

Files

  • survey-cli/survey/skills/cookie_banner.py — NEW
  • survey-cli/survey/skills/smart_page_solver.py

Source

browser-use handles consent naturally via LLM; we need deterministic approach

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestscope-lockAllowed under Plan 26 §0b scope-lock

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions