Skip to main content
Version: 21.1.1

Locator.click() method

Signature:

class Locator {
click<ElementType extends Element>(
this: Locator<ElementType>,
options?: Readonly<LocatorClickOptions>
): Promise<void>;
}

Parameters

ParameterTypeDescription
thisLocator<ElementType>
optionsReadonly<LocatorClickOptions>(Optional)

Returns:

Promise<void>