Skip to content
Skillpedia
Testing18k Β· #10653

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.md

Copy 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

Use this skill to help me: https://github.com/RightNow-AI/openfang/blob/main/crates/openfang-hands/bundled/browser/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills