You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
agent-browser scroll down 500 # Scroll page (default: down 300px)
69
+
agent-browser scrollintoview @e1 # Scroll element into view (alias: scrollinto)
63
70
agent-browser drag @e1 @e2 # Drag and drop
64
71
agent-browser upload @e1 file.pdf # Upload files
65
72
```
66
73
67
74
### Get information
75
+
68
76
```bash
69
77
agent-browser get text @e1 # Get element text
70
78
agent-browser get html @e1 # Get innerHTML
@@ -74,16 +82,19 @@ agent-browser get title # Get page title
74
82
agent-browser get url # Get current URL
75
83
agent-browser get count ".item"# Count matching elements
76
84
agent-browser get box @e1 # Get bounding box
85
+
agent-browser get styles @e1 # Get computed styles (font, color, bg, etc.)
77
86
```
78
87
79
88
### Check state
89
+
80
90
```bash
81
91
agent-browser is visible @e1 # Check if visible
82
92
agent-browser is enabled @e1 # Check if enabled
83
93
agent-browser is checked @e1 # Check if checked
84
94
```
85
95
86
96
### Screenshots & PDF
97
+
87
98
```bash
88
99
agent-browser screenshot # Screenshot to stdout
89
100
agent-browser screenshot path.png # Save to file
@@ -92,25 +103,30 @@ agent-browser pdf output.pdf # Save as PDF
92
103
```
93
104
94
105
### Video recording
106
+
95
107
```bash
96
108
agent-browser record start ./demo.webm # Start recording (uses current URL + state)
97
109
agent-browser click @e1 # Perform actions
98
110
agent-browser record stop # Stop and save video
99
111
agent-browser record restart ./take2.webm # Stop current + start new recording
100
112
```
101
-
Recording creates a fresh context but preserves cookies/storage from your session. If no URL is provided, it automatically returns to your current page. For smooth demos, explore first, then start recording.
113
+
114
+
Recording creates a fresh context but preserves cookies/storage from your session. If no URL is provided, it
115
+
automatically returns to your current page. For smooth demos, explore first, then start recording.
102
116
103
117
### Wait
118
+
104
119
```bash
105
120
agent-browser wait @e1 # Wait for element
106
121
agent-browser wait 2000 # Wait milliseconds
107
-
agent-browser wait --text "Success"# Wait for text
108
-
agent-browser wait --url "**/dashboard"# Wait for URL pattern
109
-
agent-browser wait --load networkidle # Wait for network idle
110
-
agent-browser wait --fn "window.ready"# Wait for JS condition
122
+
agent-browser wait --text "Success"# Wait for text (or -t)
123
+
agent-browser wait --url "**/dashboard"# Wait for URL pattern (or -u)
0 commit comments