playwright-go
playwright-go copied to clipboard
[Feature]: allow passing ref=true for AriaSnapshot
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,
})
I see the current playwright version is 1.51.1 supported by this repo. And ariaSnapshot method with ref attrtribute is since 1.52 once we roll up version to 1.52 this should be fixed.
I'm working on it. Maybe I'll have time this weekend.
https://github.com/canstand/playwright-go/tree/roll-v1.52
v0.5200.0 tagged