Skip to main content
Version: 21.6.0

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>