local-testing

Automate Electron/web and macOS UI testing via CDP and AppleScript.

Updated Aug 23, 2026
One-click install
npx skills add https://github.com/kingheu0818-sketch/lobehub_yu --skill local-testing-kingheu0818-sketch
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: local-testing
Source: https://github.com/kingheu0818-sketch/lobehub_yu/tree/main/.agents/skills/local-testing
Command: npx skills add https://github.com/kingheu0818-sketch/lobehub_yu --skill local-testing-kingheu0818-sketch

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill removes the friction of verifying UI and bot behavior on your own machine by providing repeatable local testing workflows for both Electron/web apps and native macOS desktop apps.

Core Features & Use Cases

  • Electron/Web UI testing via agent-browser (CDP): Drive Chromium-based UIs by taking DOM snapshots, interacting with referenced elements, and waiting for network idle or specific page states.
  • Native desktop bot testing via osascript (AppleScript): Automate common macOS app flows (activate, navigate, paste/send messages, wait, and verify via screenshots).
  • Test-support utilities for reliability: Manage Electron dev lifecycle (start/stop/status) and run screenshot/video capture flows for evidence of test results, plus ready-to-run bot test scripts per platform.

Quick Start

Run local UI or bot verification by executing the local-testing Skill instructions for your target (Electron/web with agent-browser or native apps with osascript) and capture evidence with the provided screenshot utilities.

Frequently Asked Questions about local-testing

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate local UI testing for Electron apps on macOS?

Local UI testing for Electron apps is automated using agent-browser CLI for CDP-based DOM snapshots, element interactions, and network idle waits, alongside helper scripts managing the Electron lifecycle.

Can I use AppleScript to automate native desktop bot testing on macOS?

Yes, native desktop bot testing uses osascript AppleScript automation to control macOS app flows like activating apps, navigating, pasting messages, and verifying results via screenshots.

How do I test message bots in Discord, Slack, Telegram, WeChat, Lark, or QQ locally?

Message bot testing for Discord, Slack, Telegram, WeChat, Lark, and QQ is performed using ready-to-run scripts that apply macOS Accessibility automation to verify message flows.

What is the best way to capture evidence of local bot testing results?

To capture evidence of local bot testing results, use the provided screenshot and video capture utilities to record the automated interactions and final UI states.

Does local web UI testing require agent-browser for Chromium DOM interactions?

Yes, local web UI testing requires the agent-browser CLI to drive Chromium-based UIs by taking DOM snapshots, interacting with referenced elements, and waiting for specific page states.

Why use CDP snapshots instead of coordinates for macOS web UI regression checks?

CDP snapshots reference DOM elements directly for reliable Chromium form flow automation, avoiding fragile coordinate-based interactions during local web UI regression checks.