跳到正文
cccskills
免费在 GitHub 公开

browser-automation

Automate website searches, logins, form entry, and price comparisons using Playwright, a browser automation tool. Provides workflows for locating page elements, checking results, and recovering from navigation errors or missing elements.

中文简介正在准备中。当前显示英语简介。

原文查看原文说明

Playwright-based browser automation patterns for autonomous web interaction

集成工具Playwright
查看安装方法

适用场景

  • Comparing product prices across online stores
  • Filling and submitting web forms
  • Logging in and checking the result
  • Checking product details and preparing a shopping cart

包含的文件(2)

  • SKILL.md4.0 KB
  • HAND.toml8.9 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

Browser Automation Skill

Playwright CSS Selector Reference

Basic Selectors

SelectorDescriptionExample
#idBy ID#checkout-btn
.classBy class.add-to-cart
tagBy elementbutton, input
[attr=val]By attribute[data-testid="submit"]
tag.classCombinedbutton.primary

Form Selectors

SelectorUse Case
input[type="email"]Email fields
input[type="password"]Password fields
input[type="search"]Search boxes
input[name="q"]Google/search query
textareaMulti-line text areas
select[name="country"]Dropdown menus
input[type="checkbox"]Checkboxes
input[type="radio"]Radio buttons
button[type="submit"]Submit buttons

Navigation Selectors

SelectorUse Case
a[href*="cart"]Cart links
a[href*="checkout"]Checkout links
a[href*="login"]Login links
nav aNavigation menu links
.breadcrumb aBreadcrumb links
[role="navigation"] aARIA nav links

E-commerce Selectors

SelectorUse Case
.product-price, [data-price]Product prices
.add-to-cart, #add-to-cartAdd to cart buttons
.cart-total, .order-totalCart total
.quantity, input[name="quantity"]Quantity selectors
.checkout-btn, #checkoutCheckout 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

ErrorRecovery
Element not foundTry alternative selector, use visible text, scroll page
Page timeoutRetry navigation, check URL
Login requiredInform user, ask for credentials
CAPTCHACannot solve — inform user
Pop-up/modalClick dismiss/close button first
Cookie consentClick "Accept" or dismiss banner
Rate limitedWait 30s, retry
Wrong pageUse 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)

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

ansible

免费

Create Ansible automation for configuring and updating servers. Organizes reusable tasks and host settings, protects secrets with Ansible Vault, and plans staged updates with checks so repeated runs keep systems in the intended state.

中文简介正在准备中。当前显示英语简介。

  • Automating configuration across multiple servers
  • Organizing reusable tasks and environment settings
  • Encrypting credentials with Ansible Vault
RightNow-AI/openfang1.8万2026年7月2日 更新

Test and debug REST and GraphQL APIs using curl, httpie, Postman collections, or scripted tests. Check authentication, invalid inputs, pagination, and response details to identify failures that a successful status code alone may miss.

中文简介正在准备中。当前显示英语简介。

  • Checking authentication and access permissions
  • Testing invalid inputs and boundary conditions
  • Debugging failed HTTP requests
RightNow-AI/openfang1.8万2026年7月2日 更新

aws

免费

Plan, deploy, and manage AWS infrastructure across computing, storage, networking, and serverless services. Get guidance on access permissions, backups, auditing, and cost management using AWS CLI and tools that define infrastructure in code.

中文简介正在准备中。当前显示英语简介。

  • Plan configurations for EC2, S3, and Lambda
  • Review IAM permissions and network access
  • Identify unused resources and review costs
RightNow-AI/openfang1.8万2026年7月2日 更新

azure

免费

Helps design and provision Microsoft Azure infrastructure using az CLI and Bicep configuration files. Covers choosing application hosting services, managing identities and secrets, designing networks, setting up monitoring, and organizing resources for cost management.

中文简介正在准备中。当前显示英语简介。

  • Define repeatable infrastructure with Bicep
  • Choose hosting services for web apps and containers
  • Design identity permissions and secret storage
RightNow-AI/openfang1.8万2026年7月2日 更新

ci-cd

免费

Design automated build, test, and deployment workflows for GitHub Actions, GitLab CI/CD, and Jenkins. Covers job ordering, dependency caching, secret handling, and gradual releases that use health checks before expanding deployment.

中文简介正在准备中。当前显示英语简介。

  • Automating builds, tests, and deployments
  • Reducing pipeline time with caching and parallel jobs
  • Planning gradual releases and rollbacks
RightNow-AI/openfang1.8万2026年7月2日 更新

Prepare video clips with yt-dlp, whisper, and ffmpeg, covering downloads, speech transcription, subtitle files, trimming, and vertical formatting. Also includes methods for adding generated speech and sending finished videos through messaging APIs.

中文简介正在准备中。当前显示英语简介。

  • Turning longer videos into vertical clips
  • Creating and embedding subtitles from speech
  • Adding narration made with text-to-speech
RightNow-AI/openfang1.8万2026年7月2日 更新

查看 RightNow-AI 的全部技能

报告此技能的问题