@harnessgg/electron
v0.1.0 publishedInteract with any Electron app through the Chrome DevTools Protocol. Click, type, screenshot, assert — all from the CLI with structured JSON output.
npm i -D @harnessgg/electron connectdomclicktypescreenshotassertevaluatewait # Connect to an Electron app (--inspect-brk or remote-debugging-port) $ harness-electron connect --port 9222 # Inspect the DOM $ harness-electron dom --format summary # Interact $ harness-electron type --css "input[name=email]" --value "user@example.com" $ harness-electron click --role button --name "Sign in" # Assert and capture $ harness-electron assert --kind url --expected "/dashboard" $ harness-electron screenshot --path ./artifacts/post-login.png # All output is JSON — pipe it, parse it, react to it $ harness-electron dom --format summary | jq '.data.elements'