Skip to content

feat(locator): add page.getByRef - #43055

Merged
Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
pavelfeldman:feat-get-by-ref
Oct 1, 2026
Merged

Pavel Feldman (pavelfeldman) merged 1 commit into
microsoft:mainfrom
pavelfeldman:feat-get-by-ref

Conversation

@pavelfeldman

Copy link
Copy Markdown
Member

Summary

  • Add page.getByRef(ref) that locates an element by its aria ref from page.ariaSnapshot({ mode: 'ai' }).
  • Use it in the MCP backend and in the aria snapshot tests instead of manual aria-ref= selectors.

@pavelfeldman
Pavel Feldman (pavelfeldman) merged commit 3cf9b39 into microsoft:main Oct 1, 2026
44 checks passed
@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Test results for "MCP"

8937 passed, 1489 skipped


Merge workflow run.

@github-actions

github-actions Bot commented Oct 1, 2026

Copy link
Copy Markdown
Contributor

Test results for "tests 1"

5 flaky ⚠️ [chromium-library] › library/video.spec.ts:762 › screencast › should work with video+trace `@chromium-ubuntu-22.04-arm-node20`
⚠️ [chromium-library] › library/beforeunload.spec.ts:130 › should support dismissing the dialog multiple times `@realtime-time-library-chromium-linux`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:257 › third party 'Partitioned;' cookies `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/browsercontext-cookies-third-party.spec.ts:470 › top level 'Partitioned;' cookie and same origin iframe `@firefox-ubuntu-22.04-node20`
⚠️ [firefox-library] › library/trace-viewer.spec.ts:2540 › should handle failed snapshots due to dialog `@firefox-ubuntu-22.04-node20`

52502 passed, 1270 skipped


Merge workflow run.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants