Skip to content

Conversation

@dgozman
Copy link
Contributor

@dgozman dgozman commented Nov 18, 2025

When querying with _react or _vue, suggest an alternative locator instead.

The error looks like this:

    Error: locator.click: Error: "_react" selector is not supported: locator('_react=BookList') resolved to 1 element:
        1) <ol>…</ol> aka getByText('Pride and PrejudiceTo Kill a')

    Call log:
      - waiting for locator('_react=BookList')

When querying with `_react`, suggest an alternative locator instead.
@dgozman dgozman requested a review from yury-s November 18, 2025 11:46
@github-actions
Copy link
Contributor

Test results for "MCP"

1 failed
❌ [chrome] › mcp/test-debug.spec.ts:233 › test_debug / evaluate x 2 @mcp-macos-15

2431 passed, 116 skipped


Merge workflow run.

@github-actions
Copy link
Contributor

Test results for "tests 1"

1 flaky ⚠️ [firefox-library] › library/inspector/cli-codegen-1.spec.ts:1079 › cli codegen › should not throw csp directive violation errors `@firefox-ubuntu-22.04-node18`

40308 passed, 787 skipped


Merge workflow run.

} else if (element) {
log = ` locator resolved to ${visible ? 'visible' : 'hidden'} ${injected.previewNode(element)}`;
}
injected.checkDeprecatedSelectorUsage(info.parsed, elements);
Copy link
Member

Choose a reason for hiding this comment

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

Add the same to query, queryCount etc methods too?

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.

3 participants