core-browser-automation

Solid

General-purpose patterns for reliable browser automation (selectors, waiting, scrolling, overlays, HITL).

AI & Automation 364 stars 68 forks Updated today MIT

Install

View on GitHub

Quality Score: 92/100

Stars 20%
85
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
80
License 10%
100
Description 5%
100

Skill Content

## Selector Strategy (Stability First) - **Priority 1**: `data-testid`, `data-test`, `data-cy`, `id` (if stable). - **Priority 2**: Accessible roles with names (e.g., `getByRole('button', { name: 'Submit' })`). - **Priority 3**: Text content (e.g., `getByText('Submit')`) - use with caution if text is dynamic. - **Avoid**: Brittle CSS selectors (e.g., `div > div:nth-child(3)`), XPath, or selectors tied to visual layout. ## Waiting Strategy (No Flaky Sleeps) - **Explicit Waits**: Wait for elements to be **attached**, **visible**, and **enabled** before interacting. - **State Changes**: Wait for clear UI signals (spinners disappearing, success messages appearing). - **Bounded Polling**: If no clear signal exists, use a loop with a short sleep (1-2s) and a max retry count. - **Avoid**: Long blind sleeps (e.g., `sleep(5000)`). ## Evidence Capture Hygiene - When a tool accepts a `filename`, prefer a **simple filename** (e.g., `tab2-detail-limit-200.png`) rather than passing a full/relative directory path; some environments will prepend their own output directory and can accidentally create nested paths. ## Scroll Strategy - **Window vs. Container**: Determine if the scrollbar belongs to the `window` or a specific container element. - **Incremental Scan**: Scroll in small chunks (e.g., half viewport) to trigger lazy-loading or reveal elements. - **Check after Scroll**: Re-evaluate the page state after scrolling (elements might become visible). ## Handling Overlays & Modals - **D...

Details

Author
majiayu000
Repository
majiayu000/claude-skill-registry
Created
5 months ago
Last Updated
today
Language
HTML
License
MIT

Similar Skills

Semantically similar based on skill content — not just same category

AI & Automation Solid

browser-automation

Browser automation powers web testing, scraping, and AI agent interactions. The difference between a flaky script and a reliable system comes down to understanding selectors, waiting strategies, and anti-detection patterns. This skill covers Playwright (recommended) and Puppeteer, with patterns for testing, scraping, and agentic browser control. Key insight: Playwright won the framework war. Unless you need Puppeteer's stealth ecosystem or are Chrome-only, Playwright is the better choice in 202

27,705 Updated today
davila7
AI & Automation Listed

browser-automation

Browser automation powers web testing, scraping, and AI agent interactions. The difference between a flaky script and a reliable system comes down to understanding selectors, waiting strategies, and anti-detection patterns. This skill covers Playwright (recommended) and Puppeteer, with patterns for testing, scraping, and agentic browser control. Key insight: Playwright won the framework war. Unless you need Puppeteer's stealth ecosystem or are Chrome-only, Playwright is the better choice in 202

36 Updated today
cleodin
AI & Automation Listed

browser-automation

Browser automation powers web testing, scraping, and AI agent interactions. The difference between a flaky script and a reliable system comes down to understanding selectors, waiting strategies, and anti-detection patterns. This skill covers Playwright (recommended) and Puppeteer, with patterns for testing, scraping, and agentic browser control. Key insight: Playwright won the framework war. Unless you need Puppeteer's stealth ecosystem or are Chrome-only, Playwright is the better choice in 202

335 Updated today
aiskillstore
AI & Automation Featured

browser-automation

Browser automation powers web testing, scraping, and AI agent interactions. The difference between a flaky script and a reliable system comes down to understanding selectors, waiting strategies, and anti-detection patterns.

39,350 Updated today
sickn33
AI & Automation Solid

browser

Complete real user web tasks end-to-end via browser-tool, navigate, interact, wait for page state, extract results, and provide evidence when needed.

572 Updated today
wecode-ai