Appearance
Function: watchXPath()
ts
function watchXPath(
ctx: Context,
selector: string,
options?: Partial<WatchSelectorOptions>): Watcher<ElementHandle<Element>>;Defined in: src/wait/watchSelector.ts:67
Parameters
| Parameter | Type |
|---|---|
ctx | Context |
selector | string |
options? | Partial<WatchSelectorOptions> |
Returns
Watcher<ElementHandle<Element>>
Deprecated
Use watchSelector instead.
Watch an element by XPath selector. Run code when it appears or disappears.