Skip to content

Function: watchXPath()

ts
function watchXPath(
   ctx: Context, 
   selector: string, 
options?: Partial<WatchSelectorOptions>): Watcher<ElementHandle<Element>>;

Defined in: src/wait/watchSelector.ts:67

Parameters

ParameterType
ctxContext
selectorstring
options?Partial<WatchSelectorOptions>

Returns

Watcher<ElementHandle<Element>>

Deprecated

Use watchSelector instead.

Watch an element by XPath selector. Run code when it appears or disappears.

Matterway Assistant SDK Documentation