Clicks the located element.
class Locator {
click<ElementType extends Element>(
this: Locator<ElementType>,
options?: Readonly<LocatorClickOptions>,
): Promise<void>;
}
Parameter | Type | Description |
---|---|---|
this | [Locator](./puppeteer.locator.md)<ElementType> | |
options | Readonly<[LocatorClickOptions](./puppeteer.locatorclickoptions.md)> | _(Optional)_ |
Returns:
Promise<void>