browser4-cli 4.14.0-rc.3 → 4.14.0-rc.4
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 +7 -1
- 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
|
@@ -90,6 +90,8 @@ Choosing the right tool for your task:
|
|
|
90
90
|
|
|
91
91
|
Use `snapshot -i --boxes` to see clickable/typeable elements with refs like `e15`, then `click <ref>`, `fill <ref> "<text>"`, `type`/`press`, `select`, `hover`/`drag`/`scroll`, and `wait` to drive the page. All interaction commands accept CSS selectors too. Chain multiple steps efficiently with `batch`.
|
|
92
92
|
|
|
93
|
+
Content embedded in `<iframe>`s (payment forms, editors, widgets) is reached with the built-in frame switching: `frames` lists the frame tree, `frame "<iframe selector>"` scopes subsequent element commands into that frame (same-origin iframes fully supported), and `frame main` returns to the main document — no manual `contentDocument` eval needed.
|
|
94
|
+
|
|
93
95
|
Typical interactive flow:
|
|
94
96
|
|
|
95
97
|
```bash
|
|
@@ -100,6 +102,10 @@ browser4-cli fill e3 "user@example.com"
|
|
|
100
102
|
browser4-cli fill e4 "secret" --submit
|
|
101
103
|
browser4-cli wait --load networkidle
|
|
102
104
|
browser4-cli snapshot -i
|
|
105
|
+
# iframe-heavy page:
|
|
106
|
+
browser4-cli frame "#pay-frame"
|
|
107
|
+
browser4-cli fill "#card-number" "4111 1111 1111 1111"
|
|
108
|
+
browser4-cli frame main
|
|
103
109
|
```
|
|
104
110
|
|
|
105
111
|
### How to Extract Data
|
|
@@ -778,7 +784,7 @@ The `coding` domain exposes **47 tools** in four groups:
|
|
|
778
784
|
|
|
779
785
|
Browser4 includes a lightweight **MockSite** server that serves static HTML pages for testing and demos. Start it from the repository root:
|
|
780
786
|
|
|
781
|
-
**Windows:** `./bin/test.ps1 mock-site -Dmock.site.port=18080`
|
|
787
|
+
**Windows (pwsh — PowerShell 7+):** `./bin/test.ps1 mock-site -Dmock.site.port=18080`
|
|
782
788
|
**Linux/macOS:** `./bin/test.sh mock-site -Dmock.site.port=18080`
|
|
783
789
|
|
|
784
790
|
Key demo pages are served at `http://localhost:18080/generated/`. For the full page listing, environment variables, Python fallback, and Maven-based launch, see [MockSite](docs/mocksite.md). For the test taxonomy and tagging system, see [Test Taxonomy](docs/TESTING.md).
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|