This commit is contained in:
Simon Knott 2024-10-21 17:29:57 +02:00
parent ac508d3a45
commit 689eb7750d
No known key found for this signature in database
GPG key ID: 8CEDC00028084AEC

View file

@ -194,7 +194,6 @@ function innerAsLocators(factory: LocatorFactory, parsed: ParsedSelector, isFram
const selectorPart = stringifySelector({ parts: [part] }, /* forceEngineName */ true);
locatorPartWithEngine = factory.generateLocator(base, 'default', selectorPart);
}
const locatorParts = [locatorPart, locatorPartWithEngine].filter(Boolean) as string[];
if (nextPart && nextPart.name === 'internal:control' && (nextPart.body as string) === 'enter-frame') {
// two options plus engine name:
@ -221,7 +220,7 @@ function innerAsLocators(factory: LocatorFactory, parsed: ParsedSelector, isFram
continue;
}
tokens.push(locatorParts);
tokens.push([locatorPart, locatorPartWithEngine].filter(Boolean) as string[]);
}
return combineTokens(factory, tokens, maxOutputSize);