electron-cdp-testing

Connect to a live Electron renderer via CDP to verify preload bridge and capture UI evidence.

1|Updated Jan 26, 2026
One-click install
npx skills add https://github.com/AskTinNguyen/vesper-team-skills --skill electron-cdp-testing
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: electron-cdp-testing
Source: https://github.com/AskTinNguyen/vesper-team-skills/tree/main/electron-cdp-testing
Command: npx skills add https://github.com/AskTinNguyen/vesper-team-skills --skill electron-cdp-testing

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires ws, and includes scripts (resource) components.

What problem does it solve?

Debugging and validating the Electron renderer can be brittle when using regular browser tools; this skill provides direct Chrome DevTools Protocol access to the real Electron window to inspect window.electronAPI, DOM, and app state, and to capture evidence without drift.

Core Features & Use Cases

  • Direct CDP access to the real Electron renderer for precise UI validation.
  • Verify that the preload bridge (window.electronAPI) is exposed and usable.
  • Capture screenshots and DOM summaries to document UI state during regression checks.
  • Useful for local development QA, automated smoke tests, and debugging hard-to-reproduce UI issues.

Quick Start

Run the built-in smoke test against a live Vesper Electron window to verify CDP access and capture a screenshot.

Frequently Asked Questions about electron-cdp-testing

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

FAQPage Schema
How do I verify the window.electronAPI preload bridge in an Electron app?

To verify the window.electronAPI preload bridge in an Electron app, connect directly to the live renderer via Chrome DevTools Protocol to probe DOM structure and confirm the bridge is exposed and usable.

What is the best way to capture UI evidence from an Electron renderer during smoke tests?

The best way to capture UI evidence from an Electron renderer during smoke tests is using Chrome DevTools Protocol to generate reproducible screenshots and DOM summaries that document the current UI state.

Can I use Chrome DevTools Protocol to inspect DOM structure inside an Electron window?

Yes, you can use Chrome DevTools Protocol to inspect DOM structure inside an Electron window by establishing a CDP connection, selecting the main page target, and querying the real renderer state directly.

Does this CDP testing approach work without regular browser debugging tools?

This CDP testing approach works without regular browser debugging tools by connecting directly to the real Electron window via WebSocket, avoiding the drift and brittleness common to standard browser inspection methods.

How do I run automated UI validation checks against a live Electron window?

To run automated UI validation checks against a live Electron window, execute scriptable CDP commands that test window.electronAPI exposure and capture structural evidence for quick local development QA and regression checks.

When should I not use Chrome DevTools Protocol for Electron renderer debugging?

You should not use Chrome DevTools Protocol for Electron renderer debugging when you need to test backend IPC logic independently of the UI, because this approach specifically targets the live renderer DOM and preload bridge validation.