Skip to content

[Feature]: allow passing ref=true for AriaSnapshot #538

@atmnk

Description

@atmnk

Does the upstream have similar features?
Yes

Is your feature request related to a problem? Please describe.
ariaSnapshot in upstream repo supports passing ref=true this mechanism is widely used in playwright mcp server as well. In order to use this repo in GenAI solutions implementing similar locatorless approach for driving automation we need ref=true option available

Describe the solution you'd like
I checked the source code. This is autogenerated code hence might be issue with upstream repo not documenting this option properly which is causing this repo to ignore this option in autogenerated code. If required i can create issue in upstream repo if i know exact root cause.

Additional context
Example usage source code in tyoescript

const snapshot = await this.page.locator('body').ariaSnapshot({
            ref: true,
        })

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions