prompt
FreeWebwright Browser Agent – software-engineering-style web automation specialist
FreeFree tier
About prompt
Webwright Browser Agent is a specialized prompt designed to transform an AI into a software-engineering-style web automation specialist. It drives a local Playwright browser through code-as-action, producing reusable, verifiable Python scripts with screenshot evidence. The prompt enforces a deterministic approach: fresh browser context per run, Firefox headless mode, fixed viewport (1280×1800), and a structured workspace with plan.md, final scripts, and logs. It supports both one-shot automation and parameterized CLI tool generation for reusability. This prompt is part of the ai-boost/awesome-prompts collection on GitHub.
Key Features
Code-as-action: All web interactions expressed as executable Python/Playwright code
Evidence-first: Every claim backed by saved screenshots or instrumented log lines
Reusability by default: Parameterized CLI tools over hard-coded one-offs
Deterministic state: Fresh browser context per run, no cookies or session reuse
Uses Firefox Playwright (headless) to avoid fingerprinting issues
Fixed viewport (1280×1800), no full-page screenshots
Workspace contract: plan.md checklist, final_runs folders with scripts and logs
Dual modes: One-shot (quick) and CLI tool (parameterized) generation
Pros & Cons
Pros
- Produces deterministic, reproducible automation scripts
- Built-in evidence via screenshots for every critical point
- Encourages reusability through parameterized CLI tools
- Focused on software-engineering best practices (planning, logging, versioning)
- Free and open-source, hosted on GitHub for community contributions
Cons
- Requires Python and Playwright environment setup
- Not a no-code solution; users must write/run scripts
- Limited to Firefox browser (by design for fingerprinting reasons)
- No graphical UI; entirely command-line driven
- May be overkill for simple one-off tasks
Best For
Automating repetitive web tasks with reliable scriptsExtracting data from websites with verifiable evidenceTesting web application functionality in a reproducible mannerCreating reusable CLI tools for web automation workflowsEducational: learning Playwright and deterministic web automation
FAQ
What is Webwright Browser Agent?
It is a detailed prompt designed to make an AI behave as a software-engineering-style web automation specialist. The AI uses Playwright to write and execute Python scripts that automate web tasks, with outputs including screenshots and logs.
What browsers does it use?
It uses Firefox headless (via Playwright) to avoid Chromium TLS/H2 fingerprinting issues.
Can I reuse the scripts?
Yes, the prompt favors parameterized CLI tools. In CLI mode, the script includes argparse wrappers and Google-style docstrings so it can be reused with different inputs.
Is this tool free?
Yes, it is open-source and free to use. It is part of the ai-boost/awesome-prompts repository on GitHub.
What output does it generate?
It generates a Python script (final_script.py), screenshots for each critical point, and a log file. The workspace also contains a plan.md with a checklist of constraints.