feat: enhance snapshot usability by reducing AI cognitive load of semantic noise and -C flag (#968)
* fix: add ref for cursor-interactive content roles * fix: format * feat: always include cursor-interactive elements in snapshot, -C is deprecated * feat: process StaticText aggregation and deduplication * update test * clean up * fix: escape text of elements in snapshot * fix: redundant slicing * fix: cargo fmt * feat: deduplicate redundant StaticText --------- Co-authored-by: 羲洋 <lipengyang.lpy@alibaba-inc.com>
This commit is contained in:
@@ -334,19 +334,13 @@ If you can't find an element:
|
||||
agent-browser snapshot -i
|
||||
```
|
||||
|
||||
3. **Try snapshot with extended range**
|
||||
```bash
|
||||
# Include cursor-interactive elements (divs with onclick handlers)
|
||||
agent-browser snapshot -i -C
|
||||
```
|
||||
|
||||
4. **Check current URL**
|
||||
3. **Check current URL**
|
||||
```bash
|
||||
agent-browser get url
|
||||
# Verify you're in the right section
|
||||
```
|
||||
|
||||
5. **Wait for page to load**
|
||||
4. **Wait for page to load**
|
||||
```bash
|
||||
agent-browser wait --load networkidle
|
||||
agent-browser wait 1000
|
||||
|
||||
Reference in New Issue
Block a user