Skip to main content
Version: Next

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>