mirror of
https://github.com/microsoft/playwright.git
synced 2025-06-26 21:40:17 +00:00
chore(codegen): disable multiple locators choice in UI (#29409)
This feature needs more polish to be released.
This commit is contained in:
parent
3331a40647
commit
6b37a706db
@ -131,7 +131,7 @@ class InspectTool implements RecorderTool {
|
|||||||
let model: HighlightModel | null = null;
|
let model: HighlightModel | null = null;
|
||||||
let selectors: string[] = [];
|
let selectors: string[] = [];
|
||||||
if (this._hoveredElement) {
|
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;
|
selectors = generated.selectors;
|
||||||
model = {
|
model = {
|
||||||
selector: generated.selector,
|
selector: generated.selector,
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user