browser4-cli 0.1.20 → 0.1.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +14 -17
- package/bin/browser4-cli-darwin-arm64 +0 -0
- package/bin/browser4-cli-darwin-x64 +0 -0
- package/bin/browser4-cli-linux-arm64 +0 -0
- package/bin/browser4-cli-linux-musl-arm64 +0 -0
- package/bin/browser4-cli-linux-musl-x64 +0 -0
- package/bin/browser4-cli-linux-x64 +0 -0
- package/bin/browser4-cli-win32-x64.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -25,19 +25,7 @@ npm install browser4-cli
|
|
|
25
25
|
|
|
26
26
|
Then use via `package.json` scripts or by invoking `browser4-cli` directly.
|
|
27
27
|
|
|
28
|
-
###
|
|
29
|
-
|
|
30
|
-
```bash
|
|
31
|
-
brew install browser4-cli
|
|
32
|
-
```
|
|
33
|
-
|
|
34
|
-
### Cargo (Rust)
|
|
35
|
-
|
|
36
|
-
```bash
|
|
37
|
-
cargo install browser4-cli
|
|
38
|
-
```
|
|
39
|
-
|
|
40
|
-
### Standalone Installer Scripts (no npm / Rust / Homebrew needed)
|
|
28
|
+
### Standalone Installer Scripts (no npm needed)
|
|
41
29
|
|
|
42
30
|
Bootstrap the native binary directly with a single command:
|
|
43
31
|
|
|
@@ -155,7 +143,7 @@ The tables below mirror the commands surfaced by the global `browser4-cli help`
|
|
|
155
143
|
| `check <ref>` | Check a checkbox or radio button |
|
|
156
144
|
| `uncheck <ref>` | Uncheck a checkbox or radio button |
|
|
157
145
|
| `drag <startRef> <endRef>` | Drag and drop between two elements |
|
|
158
|
-
| `snapshot` | Capture accessibility snapshot. Supports `--filename=<path>` to save
|
|
146
|
+
| `snapshot` | Capture accessibility snapshot. Supports `--filename=<path>` to save to file, `--boxes` for bounding boxes, `-i`/`--interactive` for interactive-only, `-u`/`--urls` for link URLs, `-c`/`--compact` for compact output, `-d`/`--depth <n>` for depth limiting, and `-s`/`--selector <sel>` for CSS scoping. |
|
|
159
147
|
| `eval <expression> [ref]` | Evaluate JavaScript on the page or a target element. Use `--file=<path>` to read the expression from a file. |
|
|
160
148
|
| `get <mode> <selector> [name]` | Extract data from a page element. Modes: `text`, `html`, `box`, `styles`, `property`, `attr`. `name` is required for `property` and `attr`. |
|
|
161
149
|
| `scroll <direction> <pixels>` | Scroll the page. Direction: `up`, `down`, `left`, or `right`. |
|
|
@@ -246,7 +234,7 @@ Use `close-all` for session cleanup when you want to keep the current Browser4 s
|
|
|
246
234
|
|---|---|
|
|
247
235
|
| `install` | Download the Browser4 runtime bundle. Supports `--tag=<version>` to pin a release and `--force` to reinstall even when already present. |
|
|
248
236
|
| `upgrade` | Upgrade the Browser4 runtime bundle to the latest version or a specified `--tag` |
|
|
249
|
-
| `uninstall` | Remove globally installed browser4-cli (npm
|
|
237
|
+
| `uninstall` | Remove globally installed browser4-cli (npm) and its runtime data. Supports `-y` / `--yes` (skip confirmation) and `--dry-run` (preview). |
|
|
250
238
|
| `stop` | Kill the Browser4 backend after closing all sessions |
|
|
251
239
|
| `status` | Check whether the Browser4 backend is reachable and healthy |
|
|
252
240
|
|
|
@@ -262,8 +250,8 @@ When a local Browser4 checkout is detected with the `browser4-bundle` module pre
|
|
|
262
250
|
`install` and `upgrade` auto-build the runtime bundle from source (via Maven) instead
|
|
263
251
|
of downloading.
|
|
264
252
|
|
|
265
|
-
`uninstall` attempts to remove browser4-cli from npm global packages
|
|
266
|
-
|
|
253
|
+
`uninstall` attempts to remove browser4-cli from npm global packages
|
|
254
|
+
and deletes the Browser4 runtime data and cache directories. It prompts
|
|
267
255
|
for confirmation unless `-y` / `--yes` is passed. Use `--dry-run` to preview what
|
|
268
256
|
would be removed without making changes. Does not require a running server.
|
|
269
257
|
|
|
@@ -612,6 +600,15 @@ browser4-cli goto https://browser4.io
|
|
|
612
600
|
# Inspect the page — note the eN labels on interactive nodes
|
|
613
601
|
browser4-cli snapshot
|
|
614
602
|
|
|
603
|
+
# Include element bounding boxes in the snapshot
|
|
604
|
+
browser4-cli snapshot --boxes
|
|
605
|
+
|
|
606
|
+
# Show only interactive elements with compact output, depth-limited
|
|
607
|
+
browser4-cli snapshot -i -c -d 5
|
|
608
|
+
|
|
609
|
+
# Scope snapshot to a specific CSS selector
|
|
610
|
+
browser4-cli snapshot -s "#main-content"
|
|
611
|
+
|
|
615
612
|
# Capture a static DOM snapshot and extract data
|
|
616
613
|
browser4-cli domsnapshot
|
|
617
614
|
browser4-cli domsnapshot get text "#productTitle"
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|