← 返回
未分类 中文

Se Browser Automation

Browser automation patterns and best practices for OpenClaw browser control. Use when navigating web apps, filling forms, clicking elements, or extracting da...
OpenClaw 浏览器控制的自动化模式和最佳实践,适用于导航 Web 应用、填写表单、点击元素或提取数据等场景。
boris148 boris148 来源
未分类 clawhub v1.0.0 1 版本 100000 Key: 无需
★ 0
Stars
📥 727
下载
💾 1
安装
1
版本
#latest

概述

Browser Automation Skill

Profile

  • Use profile: openclaw for all automated browsing
  • Browser is managed by OpenClaw gateway

Core Patterns

Navigation

  • Use browser navigate with direct URLs when possible (faster than clicking through menus)
  • Always sleep 4-6 after navigation — SPAs load content asynchronously
  • If page seems blank, try screenshot first — content may be rendered but not in DOM snapshot

Element Interaction

  • Use snapshot to get element refs, then act with refs
  • For iframe content: use frame parameter in snapshot
  • If compact snapshot misses content, try full snapshot or screenshot
  • GHL and complex SPAs often render in iframes — check both main page and iframe

Screenshots vs Snapshots

  • Snapshot — DOM tree, good for finding clickable refs
  • Screenshot — Visual image, good for understanding what's actually on screen
  • When snapshot shows empty/minimal content but screenshot shows a full page → content is in iframe or shadow DOM

Login Flows

  1. Navigate to login page
  2. Snapshot to find form fields
  3. Click + type credentials
  4. Handle 2FA (check email, enter code)
  5. Wait for redirect (sleep 4-6 seconds)
  6. Verify logged in via screenshot

Common Issues

  • Popups/modals blocking → Press Escape
  • Lazy-loaded content → Wait longer, refresh, or navigate directly via URL
  • iframe content → Use frame parameter or evaluate JS to find iframe
  • evaluate function errors → No const, let, or arrow functions. Use var and function(){} syntax.
  • ref required errors → Must use ref from snapshot, can't use text selectors

SPA-Specific Tips

  • SPAs don't fully reload on navigation — URL changes but DOM updates incrementally
  • Some content only appears after JavaScript execution
  • If clicking a link doesn't work, try navigating directly to the URL
  • F5 refresh can help when SPA state gets stuck

版本历史

共 1 个版本

  • v1.0.0 当前
    2026-05-03 04:25 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

AdMapix

fly0pants
AdMapix 原始数据层,提供广告创意、应用、排名、下载/收入及市场元数据。返回 AdMapix API 的结构化 JSON;调用方...
★ 299 📥 143,675
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 219 📥 72,843
content-creation

Ad Copy System

boris148
AudienceLab广告文案系统。创建高转化广告文案、标题和钩子的完整框架。用于YourAgency广告文案撰写。
★ 0 📥 543