Skip to main content

Function: generateFallbackSelectors()

function generateFallbackSelectors(fallbacks, hints?): FallbackSelectorResult;

Defined in: packages/uimatch-selector-anchors/src/resolvers/fallback-selectors.ts:26

Generate fallback selectors from fallback strategies Combines role, text, classes, and tag to create selector candidates

Parameters

fallbacks

Fallback strategies from anchor definition

classList?

string[] = ...

role?

string = ...

tag?

string = ...

text?

string = ...

hints?

Additional hints from AST extraction (optional)

classList?

string[] = ...

role?

string = ...

tag?

string = ...

text?

string = ...

Returns

FallbackSelectorResult

Fallback selector candidates