@testplane/cli
v0.2.1
Published
Daemon-backed CLI for Testplane browser-automation tools
Downloads
399
Keywords
Readme
Testplane CLI is a command line interface for inspecting and controlling a browser from your terminal. It makes possible to perform any browser interactions, inspect HTML Reports and Time Travel snapshots, use REPL mode to debug failing tests and more.
Read the full Testplane CLI documentation.
Installation
Install globally:
npm install -g @testplane/cliOr run it without installing:
npx @testplane/cli@latest --helpExamples
Open a page and capture a DOM snapshot:
testplane-cli navigate https://example.com
testplane-cli snapshotInteract with the current page:
testplane-cli click --role button --name "Submit"
testplane-cli type "#email" --value [email protected]Run custom Testplane code against the active browser session:
testplane-cli run-code "await browser.getUrl()"
testplane-cli run-code --file ./scripts/check-page.jsCapabilities
Testplane CLI runs a reusable local daemon for each project, so commands can share the same browser session across terminal invocations.
- Various browser interactions: navigate pages, click and type into elements, manage tabs, read console output, take screenshots, and inspect DOM or visual state.
- HTML reporter integration: open reports and inspect captured time travel snapshots.
- REPL mode integration for interactive browser exploration from the terminal.
- Save and restore browser state to handle authenticated flows.
- Run arbitrary Testplane code when built-in commands are not enough.
