2023-06-02 17:46:10 +00:00
|
|
|
---
|
|
|
|
sidebar_label: Locator.click
|
|
|
|
---
|
|
|
|
|
|
|
|
# Locator.click() method
|
|
|
|
|
|
|
|
#### Signature:
|
|
|
|
|
|
|
|
```typescript
|
|
|
|
class Locator {
|
2023-06-07 10:45:02 +00:00
|
|
|
abstract click(
|
2023-06-02 17:46:10 +00:00
|
|
|
clickOptions?: ClickOptions & {
|
|
|
|
signal?: AbortSignal;
|
|
|
|
}
|
|
|
|
): Promise<void>;
|
|
|
|
}
|
|
|
|
```
|
|
|
|
|
|
|
|
## Parameters
|
|
|
|
|
|
|
|
| Parameter | Type | Description |
|
|
|
|
| ------------ | --------------------------------------------------------------------------- | ------------ |
|
|
|
|
| clickOptions | [ClickOptions](./puppeteer.clickoptions.md) & { signal?: AbortSignal; } | _(Optional)_ |
|
|
|
|
|
|
|
|
**Returns:**
|
|
|
|
|
|
|
|
Promise<void>
|