Skip to content

Function: XPathLabel()

ts
function XPathLabel(label: string, element?: string): string;

Defined in: src/wait/waiters/waitForText.ts:13

Build an XPath expression that matches an element by its text content.

Parameters

ParameterTypeDefault valueDescription
labelstringundefinedThe text to match.
elementstring'*'The element tag to search. Defaults to *.

Returns

string

An XPath string that selects the element containing the label.

Matterway Assistant SDK Documentation