Environment:AI Builder Club Skills Playwright CLI
| Knowledge Sources | |
|---|---|
| Domains | Browser_Automation, Verification |
| Last Updated | 2026-10-24 00:00 GMT |
Overview
Playwright CLI browser automation environment for driving web apps during verification — taking screenshots, recording video, and asserting UI behavior.
Description
This environment provides the playwright-cli tool (@playwright/cli) for browser automation. The verifier-setup skill installs and confirms this as the default driver for web apps. It enables a fresh verifier sub-agent to drive the running app, capture screenshots and video evidence to evidence/, and assert observed behavior against acceptance criteria. On crabbox cloud boxes, Playwright runs inside the box via cbx.sh pw.
Usage
Use this environment for Verify-Before-Ship — the default driver for web app verification. The verifier sub-agent uses Playwright to navigate the app, interact with the UI, and capture proof. Required by the verifier_setup_skill implementation.
System Requirements
| Category | Requirement | Notes |
|---|---|---|
| OS | macOS, Linux, Windows | Cross-platform |
| Hardware | Any with display (or headless) | Headless mode for CI/cloud boxes |
| Disk | 500MB | Playwright + browser binaries |
Dependencies
System Packages
- Node.js 18+ (for npx)
- Browser binaries (Chromium, Firefox, WebKit — installed via Playwright)
Python Packages
- None (Playwright is a Node.js tool)
Credentials
No credentials required for the tool itself. App-level credentials (login/session) are handled by the verifier skill's AUTH_HELPER configuration.
Quick Install
# Install Playwright CLI and browser channel
npx --yes @playwright/cli --version
npx playwright install chrome
# Verify
npx --yes @playwright/cli --version
Code Evidence
Driver installation check from verifier-setup/SKILL.md:87-88:
npx --yes @playwright/cli --version
# Install it + the `chrome` channel if missing
In-box Playwright execution from cbx.sh:70-71:
pw) ID="$(resolve_id)"; shift 2 || true; [ "${1:-}" = "--" ] && shift || true
RN "$ID" -- playwright-cli "$@" ;;
Template driver reference from verify.template.md:38:
- **Driver** — `{{DRIVER}}` <!-- web: the `playwright-cli` skill · non-web: API client / built CLI -->
Common Errors
| Error Message | Cause | Solution |
|---|---|---|
Executable doesn't exist |
Browser binary not installed | npx playwright install chrome
|
playwright-cli: command not found |
Playwright CLI not installed | npx --yes @playwright/cli or install globally
|
browser was not found |
Chrome channel not installed | npx playwright install chromium
|
Compatibility Notes
- Cloud boxes (crabbox): Playwright runs inside the box via
cbx.sh pw; usecbx.sh tunnelfor local browser access to the box. - Headless mode: Used by default in CI and cloud box verification.
- Non-web apps: Playwright is not needed — use an HTTP client (curl) for APIs or the built CLI for CLI tools.