I would like to request support for taking screenshots of specific elements in agent-browser, similar to Playwright’s element screenshot capability.
Playwright already provides an element screenshot feature, which allows capturing a screenshot of a specific DOM element:
https://playwright.dev/docs/screenshots#element-screenshot
It would be great if agent-browser screenshot could also support element-level screenshots.
For example, a possible API design could be:
agent-browser screenshot --selector @e1
agent-browser screenshot --selector ".header"
This would allow users to capture screenshots of specific elements instead of the full page.
Thank you for considering this feature request!
I would like to request support for taking screenshots of specific elements in agent-browser, similar to Playwright’s element screenshot capability.
Playwright already provides an element screenshot feature, which allows capturing a screenshot of a specific DOM element:
https://playwright.dev/docs/screenshots#element-screenshot
It would be great if agent-browser screenshot could also support element-level screenshots.
For example, a possible API design could be:
This would allow users to capture screenshots of specific elements instead of the full page.
Thank you for considering this feature request!