Skip to main content

Interface: ASTResolverResult

Defined in: packages/uimatch-selector-anchors/src/resolvers/ast-resolver.ts:28

Result of resolving a selector from AST

Properties

element?

optional element: object;

Defined in: packages/uimatch-selector-anchors/src/resolvers/ast-resolver.ts:42

The actual JSX element found at the location

attributes

attributes: Record<string, string>;

tag?

optional tag: string;

text?

optional text: string;

hint

hint: object;

Defined in: packages/uimatch-selector-anchors/src/resolvers/ast-resolver.ts:37

Extracted hint information from the code

ariaLabel?

optional ariaLabel: string;

expectedText?

optional expectedText: string;

prefer?

optional prefer: ("testid" | "role" | "text" | "css")[];

role?

optional role: string;

testid?

optional testid: string;

reasons

reasons: string[];

Defined in: packages/uimatch-selector-anchors/src/resolvers/ast-resolver.ts:51

Detailed reasons explaining resolution outcome


selectors

selectors: string[];

Defined in: packages/uimatch-selector-anchors/src/resolvers/ast-resolver.ts:32

Generated selector candidates in priority order