browser-automation
What it does
This skill gives reference patterns for automating a web browser with Playwright, including CSS selectors for forms, navigation and shopping pages. It is for people who want an AI agent to click, type and read websites on its own.
When to use it
- βWhen you want an AI agent to fill in a web form or click through a website.
- βWhen you need reliable selectors for buttons, inputs, links or dropdowns on a page.
- βWhen an automation task needs to read product prices or cart totals from a store page.
Skill link
https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/browser/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βHave my assistant open our online store, add an item to the cart, and read the total.β
5 new skills a week. 1 minute to read.
How it works
The skill lists common CSS selectors and patterns, so the agent can find page elements and interact with them in a consistent way.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
Browser Automation Skill
Playwright CSS Selector Reference
Basic Selectors
| Selector | Description | Example |
|---|---|---|
#id |
By ID | #checkout-btn |
.class |
By class | .add-to-cart |
tag |
By element | button, input |
[attr=val] |
By attribute | [data-testid="submit"] |
tag.class |
Combined | button.primary |
Form Selectors
| Selector | Use Case |
|---|---|
input[type="email"] |
Email fields |
input[type="password"] |
Password fields |
input[type="search"] |
Search boxes |
input[name="q"] |
Google/search query |
textarea |
Multi-line text areas |
select[name="country"] |
Dropdown menus |
input[type="checkbox"] |
Checkboxes |
input[type="radio"] |
Radio buttons |
button[type="submit"] |
Submit buttons |
Navigation Selectors
| Selector | Use Case |
|---|---|
a[href*="cart"] |
Cart links |
a[href*="checkout"] |
Checkout links |
a[href*="login"] |
Login links |
nav a |
Navigation menu links |
.breadcrumb a |
Breadcrumb links |
[role="navigation"] a |
ARIA nav links |
E-commerce Selectors
| Selector | Use Case |
|---|---|
.product-price, [data-price] |
Product prices |
.add-to-cart, #add-to-cart |
Add to cart buttons |
.cart-total, .order-total |
Cart total |
.quantity, input[name="quantity"] |
Quantity selectors |
.checkout-btn, #checkout |
Checkout buttons |
Common Workflows
Product Search & Purchase
1. browser_navigate β store homepage
2. browser_type β search box with product name
3. browser_click β search button or press Enter
4. browser_read_page β scan results
5. browser_click β desired product
6. browser_read_page β verify product details & price
7. browser_click β "Add to Cart"
8. browser_navigate β cart page
9. browser_read_page β verify cart contents & total
10. STOP β Report to user, wait for approval
11. browser_click β "Proceed to Checkout" (only after approval)
Account Login
1. browser_navigate β login page
2. browser_type β email/username field
3. browser_type β password field
4. browser_click β login/submit button
5. browser_read_page β verify successful login
Form Submission
1. browser_navigate β form page
2. browser_read_page β understand form structure
3. browser_type β fill each field sequentially
4. browser_click β checkboxes/radio buttons as needed
5. browser_screenshot β visual verification before submit
6. browser_click β submit button
7. browser_read_page β verify confirmation
Price Comparison
1. For each store:
a. browser_navigate β store URL
b. browser_type β search query
c. browser_read_page β extract prices
d. memory_store β save price data
2. memory_recall β compare all prices
3. Report findings to user
Error Recovery Strategies
| Error | Recovery |
|---|---|
| Element not found | Try alternative selector, use visible text, scroll page |
| Page timeout | Retry navigation, check URL |
| Login required | Inform user, ask for credentials |
| CAPTCHA | Cannot solve β inform user |
| Pop-up/modal | Click dismiss/close button first |
| Cookie consent | Click "Accept" or dismiss banner |
| Rate limited | Wait 30s, retry |
| Wrong page | Use browser_read_page to verify, navigate back |
Security Checklist
- Verify domain before entering credentials
- Never store passwords in memory_store
- Check for HTTPS before submitting sensitive data
- Report suspicious redirects to user
- Never auto-approve financial transactions
- Warn about phishing indicators (misspelled domains, unusual URLs)
FAQ
What is Playwright?
It is a tool that lets code control a web browser, such as clicking, typing and reading pages.
What is a CSS selector?
It is a short pattern that identifies a part of a web page, such as a button with a certain ID or class.
Does it help with online stores?
Yes. The skill includes selectors for product prices, add to cart buttons and cart totals.
Details
Original description by the author
Playwright-based browser automation patterns for autonomous web interaction
repo: RightNow-AI/openfang
Popularity
- GitHub stars
- 18k
- Ranking position
- #10653
- License
- Apache-2.0
- Updated
- 7/2/2026
Comments
- β¦
More skills from this repository
clip-hand-skill
18kHelps your agent make video clips: download a video, transcribe its speech, create subtitle files and cut clips with ffmpeg.
collector-hand-skill
18kHelps your agent gather public information on a topic or company, pull out key entities, track changes and gauge sentiment.
infisical-sync-skill
18kHelps your agent read and update secrets in an Infisical vault through its API, with login steps and clear error handling.
lead-hand-skill
18kHelps your agent find and score potential customers by searching the web, enriching company details and removing duplicates.
Similar skills
test-driven-development
311kTeaches your agent to write a failing test first, watch it fail, then write the smallest code that passes, before building any feature or fix.
verification-before-completion
311kTeaches your agent to run real checks and read their output before claiming that a task, fix, or build is complete or passing.
migrate-to-shoehorn
310kReplaces risky type casts in your test files with the shoehorn library, so tests can use partial data and still pass type checks.