Browser Automation Stinger
Purpose
Guide testable Playwright and Puppeteer automation without conflating their APIs or assuming a browser binary is installed on every host. It covers framework selection, browser installation, isolation, selectors, diagnostics, downloads, external-effect boundaries, and CI evidence.
When to use
- Writing, debugging, or reviewing Playwright tests or scripts
- Writing, debugging, or reviewing Puppeteer automation
- Setting up browser binaries, traces, screenshots, UI mode, or browser automation CI
When not to use
- Implementing Chrome DevTools Protocol directly or building Chromium, use chrome-chromium-stinger.
- Browser performance or SEO analysis without automation code, use the appropriate performance or SEO Stinger.
Procedure
- Read guides/01-select-and-operate.md.
- Choose Playwright for a test-runner workflow and cross-browser project configuration. Choose Puppeteer for a focused JavaScript browser-control task, after checking its documented browser support.
- Install the required browser binaries explicitly in local and CI environments. Do not rely on a developer machine cache.
- Prefer semantic, stable locators and explicit expected conditions. Isolate test data and block unapproved external effects.
- Capture trace, screenshot, video, console, and network evidence proportionate to the failure, then verify the exact browser and channel used.
References map
- references/REFERENCE.md, load for selection and evidence table.
- references/research/distilled-browser-automation.md, load to verify facts.
references/research/raw/, load for primary source captures.
- guides/01-select-and-operate.md, load before implementation.
Related bees and stingers
Critical Directive
- You must read all files and context contained within your skill.
- In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task.
- Additional related skills can be found here:
Ship Gate
Prior to committing any code to the repository you must utilize in order the security-stinger, quality-stinger, and github-repo-health-stinger. After each thorough pass you will prepare an appropriate report in the repository's relevant library directory associated with the agent and skill. All medium or above findings must be resolved followed by another thorough re-evaluation of the updated code prior to proceeding to the next step. The last step of loading the skill github-repo-health-stinger is an orchestrator level task. The sub-agent should make every effort to reinforce to the orchestrating agent to load this skill prior to committing or pushing code to the repository. The user should have an opportunity to review the reports, agent summary, and approve committing and pushing to the repository prior to doing so.
1---2name: browser-automation-stinger3description: Playwright and Puppeteer automation for deterministic browser tests, debugging, downloads, screenshots, and browser lifecycle control. Use for browser automation work.4license: MIT5---67# Browser Automation Stinger89## Purpose1011Guide testable Playwright and Puppeteer automation without conflating their APIs or assuming a browser binary is installed on every host. It covers framework selection, browser installation, isolation, selectors, diagnostics, downloads, external-effect boundaries, and CI evidence.1213## When to use1415- Writing, debugging, or reviewing Playwright tests or scripts16- Writing, debugging, or reviewing Puppeteer automation17- Setting up browser binaries, traces, screenshots, UI mode, or browser automation CI1819## When not to use2021- Implementing Chrome DevTools Protocol directly or building Chromium, use [chrome-chromium-stinger](../chrome-chromium-stinger).22- Browser performance or SEO analysis without automation code, use the appropriate performance or SEO Stinger.2324## Procedure25261. Read [guides/01-select-and-operate.md](guides/01-select-and-operate.md).272. Choose Playwright for a test-runner workflow and cross-browser project configuration. Choose Puppeteer for a focused JavaScript browser-control task, after checking its documented browser support.283. Install the required browser binaries explicitly in local and CI environments. Do not rely on a developer machine cache.294. Prefer semantic, stable locators and explicit expected conditions. Isolate test data and block unapproved external effects.305. Capture trace, screenshot, video, console, and network evidence proportionate to the failure, then verify the exact browser and channel used.3132## References map3334- [references/REFERENCE.md](references/REFERENCE.md), load for selection and evidence table.35- [references/research/distilled-browser-automation.md](references/research/distilled-browser-automation.md), load to verify facts.36- `references/research/raw/`, load for primary source captures.37- [guides/01-select-and-operate.md](guides/01-select-and-operate.md), load before implementation.3839## Related bees and stingers4041- [browser-automation-worker-bee](../../agents/browser-automation-worker-bee.md) - paired implementation specialist.42- [chrome-chromium-stinger](../chrome-chromium-stinger) - CDP and Chromium engineering.43- [ci-release-stinger](../ci-release-stinger) - CI architecture beyond the browser-specific job.4445## Critical Directive4647- You must read all files and context contained within your skill.48- In the event your core knowledge does not provide sufficient guidance you must make every attempt to search the internet, related knowledge base documentation files, and other available resources to supplement your knowledge prior to proceeding with your task.49- Additional related skills can be found here:50 - [chrome-chromium-stinger](../chrome-chromium-stinger) - protocol and browser-engine ownership.51 - [ci-release-stinger](../ci-release-stinger) - workflow design.5253## Ship Gate5455Prior to committing any code to the repository you must utilize in order the security-stinger, quality-stinger, and github-repo-health-stinger. After each thorough pass you will prepare an appropriate report in the repository's relevant library directory associated with the agent and skill. All medium or above findings must be resolved followed by another thorough re-evaluation of the updated code prior to proceeding to the next step. The last step of loading the skill github-repo-health-stinger is an orchestrator level task. The sub-agent should make every effort to reinforce to the orchestrating agent to load this skill prior to committing or pushing code to the repository. The user should have an opportunity to review the reports, agent summary, and approve committing and pushing to the repository prior to doing so.