Skip to main content
Version: Next

Locator.once() method

Signature:

class Locator {
once<K extends keyof LocatorEventObject>(
eventName: K,
handler: (event: LocatorEventObject[K]) => void
): this;
}

Parameters

ParameterTypeDescription
eventNameK
handler(event: LocatorEventObject[K]) => void

Returns:

this