Skip to content

chore: make refs & emitGeneric private for mcp #35888

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2025

Conversation

pavelfeldman
Copy link
Member

No description provided.


Generate `generic` aria nodes for elements w/o roles (similar to Chrome DevTools).

### option: Locator.ariaSnapshot.ref
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add to the breaking changes list.

@@ -1976,13 +1976,7 @@ Frame:
ariaSnapshot:
parameters:
selector: string
ref: boolean?
emitGeneric: boolean?
mode:
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Was mode unused?

@@ -746,11 +748,11 @@ it('ref mode can be used to stitch all frame snapshots', async ({ page, server }
expect(await allFrameSnapshot(page)).toContainYaml(`
- iframe [ref=s1e3]:
- iframe [ref=s1e3]:
- text: Hi, I'm frame
- generic [ref=s1e3]: Hi, I'm frame
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

did this change because ref is now bundled with emitGeneric?

This comment has been minimized.

Copy link
Contributor

github-actions bot commented May 8, 2025

Test results for "tests 1"

2 failed
❌ [firefox-page] › page/page-evaluate.spec.ts:424:3 › should throw for too deep reference chain @firefox-ubuntu-22.04-node18
❌ [playwright-test] › runner.spec.ts:118:5 › should ignore subprocess creation error because of SIGINT @macos-latest-node18-1

3 flaky ⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:986:7 › cli codegen › should not throw csp directive violation errors @firefox-ubuntu-22.04-node18
⚠️ [webkit-library] › library/ignorehttpserrors.spec.ts:30:3 › should isolate contexts @webkit-ubuntu-22.04-node18
⚠️ [playwright-test] › ui-mode-test-watch.spec.ts:145:5 › should watch all @windows-latest-node18-1

39143 passed, 803 skipped
✔️✔️✔️

Merge workflow run.

@@ -38,7 +38,7 @@ import LiteYouTube from '@site/src/components/LiteYouTube';
### Miscellaneous

- New option [`option: APIRequest.newContext.maxRedirects`] in [`method: APIRequest.newContext`] to control the maximum number of redirects.
- New option [`option: Locator.ariaSnapshot.ref`] in [`method: Locator.ariaSnapshot`] to generate reference for each element in the snapshot which can later be used to locate the element.
- New option `ref` in [`method: Locator.ariaSnapshot`] to generate reference for each element in the snapshot which can later be used to locate the element.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe delete this section completely, there is no such option anyway?

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