diff --git a/docs/src/api/class-locator.md b/docs/src/api/class-locator.md index 79b8752273..7e82d548dd 100644 --- a/docs/src/api/class-locator.md +++ b/docs/src/api/class-locator.md @@ -128,6 +128,10 @@ If the target element is not an ``, `` or `[contenteditable]` e ## async method: Locator.click * since: v1.14 +Click an element. + +**Details** + This method clicks the element by performing the following steps: 1. Wait for [actionability](../actionability.md) checks on the element, unless [`option: force`] option is set. 1. Scroll the element into view if needed. diff --git a/packages/playwright-core/types/types.d.ts b/packages/playwright-core/types/types.d.ts index 024e48d0df..1eeb1351db 100644 --- a/packages/playwright-core/types/types.d.ts +++ b/packages/playwright-core/types/types.d.ts @@ -9980,6 +9980,10 @@ export interface Locator { }): Promise; /** + * Click an element. + * + * **Details** + * * This method clicks the element by performing the following steps: * 1. Wait for [actionability](https://playwright.dev/docs/actionability) checks on the element, unless `force` option is set. * 1. Scroll the element into view if needed.