File size: 1,227 Bytes
3a65265
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
export const browserCoreExamples = [
  "moltbot browser status",
  "moltbot browser start",
  "moltbot browser stop",
  "moltbot browser tabs",
  "moltbot browser open https://example.com",
  "moltbot browser focus abcd1234",
  "moltbot browser close abcd1234",
  "moltbot browser screenshot",
  "moltbot browser screenshot --full-page",
  "moltbot browser screenshot --ref 12",
  "moltbot browser snapshot",
  "moltbot browser snapshot --format aria --limit 200",
  "moltbot browser snapshot --efficient",
  "moltbot browser snapshot --labels",
];

export const browserActionExamples = [
  "moltbot browser navigate https://example.com",
  "moltbot browser resize 1280 720",
  "moltbot browser click 12 --double",
  'moltbot browser type 23 "hello" --submit',
  "moltbot browser press Enter",
  "moltbot browser hover 44",
  "moltbot browser drag 10 11",
  "moltbot browser select 9 OptionA OptionB",
  "moltbot browser upload /tmp/file.pdf",
  'moltbot browser fill --fields \'[{"ref":"1","value":"Ada"}]\'',
  "moltbot browser dialog --accept",
  'moltbot browser wait --text "Done"',
  "moltbot browser evaluate --fn '(el) => el.textContent' --ref 7",
  "moltbot browser console --level error",
  "moltbot browser pdf",
];