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
- Banner detection patterns — Selector lists for OneTrust, CookieYes, CookieConsent, generic; text-based fallbacks (
Akzeptieren, Accept All)
- Auto-dismiss before DOM scan — In
solve_page(), check for + dismiss banner BEFORE question detection
- CDP click — isTrusted=true click on accept button
- Cookie strategy config —
--cookie-strategy accept|reject|ignore (default: accept — matches real user behavior)
- 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
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
Akzeptieren,Accept All)solve_page(), check for + dismiss banner BEFORE question detection--cookie-strategy accept|reject|ignore(default: accept — matches real user behavior)Validation
Files
survey-cli/survey/skills/cookie_banner.py— NEWsurvey-cli/survey/skills/smart_page_solver.pySource
browser-use handles consent naturally via LLM; we need deterministic approach