chore(codegen): disable multiple locators choice in UI (#29409)

This feature needs more polish to be released.
This commit is contained in:
Dmitry Gozman 2024-02-07 17:08:04 -08:00 committed by GitHub
parent 3331a40647
commit 6b37a706db
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -131,7 +131,7 @@ class InspectTool implements RecorderTool {
let model: HighlightModel | null = null;
let selectors: string[] = [];
if (this._hoveredElement) {
const generated = this._recorder.injectedScript.generateSelector(this._hoveredElement, { testIdAttributeName: this._recorder.state.testIdAttributeName, multiple: true });
const generated = this._recorder.injectedScript.generateSelector(this._hoveredElement, { testIdAttributeName: this._recorder.state.testIdAttributeName, multiple: false });
selectors = generated.selectors;
model = {
selector: generated.selector,