Skip to main content

Interface: HTMLResolverResult

Defined in: packages/uimatch-selector-anchors/src/resolvers/html-resolver.ts:19

Result of resolving a selector from HTML

Properties

element?

optional element: object;

Defined in: packages/uimatch-selector-anchors/src/resolvers/html-resolver.ts:33

The actual HTML element found at the location

attributes

attributes: Record<string, string>;

tag

tag: string;

text?

optional text: string;

hint

hint: object;

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

Extracted hint information from the HTML

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/html-resolver.ts:42

Detailed reasons explaining resolution outcome


selectors

selectors: string[];

Defined in: packages/uimatch-selector-anchors/src/resolvers/html-resolver.ts:23

Generated selector candidates in priority order