Skip to main content
Version: 21.3.2

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>