browser-pilot-cli 0.1.2 → 0.1.3
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/dist/cli.js +12 -6
- package/package.json +1 -1
package/dist/cli.js
CHANGED
|
@@ -549,7 +549,8 @@ Workflow:
|
|
|
549
549
|
bp open <url> # navigate \u2014 returns snapshot with [ref] numbers
|
|
550
550
|
bp click <ref> # interact \u2014 returns updated snapshot
|
|
551
551
|
bp type <ref> <text> # input text \u2014 returns updated snapshot
|
|
552
|
-
bp
|
|
552
|
+
bp keyboard <text> # type via keyboard events (Google Docs etc.)
|
|
553
|
+
bp press <key> # press key \u2014 returns updated snapshot
|
|
553
554
|
bp eval <js> # run JavaScript (escape hatch for anything)
|
|
554
555
|
|
|
555
556
|
Refs:
|
|
@@ -563,12 +564,17 @@ Output:
|
|
|
563
564
|
Actions return: {"ok":true, "title":"...", "url":"...", "elements":[...]}
|
|
564
565
|
Errors return: {"ok":false, "error":"...", "hint":"..."}
|
|
565
566
|
|
|
567
|
+
Canvas editors (Google Docs, Sheets, Figma):
|
|
568
|
+
bp keyboard "text" --click ".editor" # click to focus, then type
|
|
569
|
+
bp keyboard "text" --clear # select all + delete, then type
|
|
570
|
+
bp press Meta+b # toggle bold (works in Docs)
|
|
571
|
+
|
|
566
572
|
Edge cases:
|
|
567
|
-
bp upload <
|
|
568
|
-
bp auth <user> <pass>
|
|
569
|
-
bp frame
|
|
570
|
-
bp frame 1
|
|
571
|
-
bp frame 0
|
|
573
|
+
bp upload <filepath> # file input upload (auto-detect)
|
|
574
|
+
bp auth <user> <pass> # HTTP Basic Auth
|
|
575
|
+
bp frame # list iframes
|
|
576
|
+
bp frame 1 # eval in iframe context
|
|
577
|
+
bp frame 0 # back to top frame
|
|
572
578
|
Dialogs (alert/confirm) are auto-handled by the daemon.
|
|
573
579
|
|
|
574
580
|
Eval (replaces scroll, back, forward, extract, etc.):
|