Skip to content

[Feature] Support Element Screenshot #587

@CupNoodleFork

Description

@CupNoodleFork

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions