-
Notifications
You must be signed in to change notification settings - Fork 4.4k
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
Conversation
|
||
Generate `generic` aria nodes for elements w/o roles (similar to Chrome DevTools). | ||
|
||
### option: Locator.ariaSnapshot.ref |
There was a problem hiding this comment.
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: |
There was a problem hiding this comment.
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 |
There was a problem hiding this comment.
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.
This comment has been minimized.
Test results for "tests 1"2 failed 3 flaky39143 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. |
There was a problem hiding this comment.
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?
No description provided.