From 3f5183113569a237ddd5ebe9d4400c9db6dd1a04 Mon Sep 17 00:00:00 2001 From: Alex Rudenko Date: Wed, 27 Jul 2022 10:01:00 +0200 Subject: [PATCH] docs: fix a typo in waitForSelector (#8701) --- docs/api/puppeteer.page.waitforselector.md | 2 +- src/common/Page.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/api/puppeteer.page.waitforselector.md b/docs/api/puppeteer.page.waitforselector.md index ddbbae2a1a1..36d002654b5 100644 --- a/docs/api/puppeteer.page.waitforselector.md +++ b/docs/api/puppeteer.page.waitforselector.md @@ -58,6 +58,6 @@ The optional Parameter in Arguments `options` are : - `Visible`: A boolean wait for element to be present in DOM and to be visible, i.e. to not have `display: none` or `visibility: hidden` CSS properties. Defaults to `false`. -- `hidden`: ait for element to not be found in the DOM or to be hidden, i.e. have `display: none` or `visibility: hidden` CSS properties. Defaults to `false`. +- `hidden`: Wait for element to not be found in the DOM or to be hidden, i.e. have `display: none` or `visibility: hidden` CSS properties. Defaults to `false`. - `timeout`: maximum time to wait for in milliseconds. Defaults to `30000` (30 seconds). Pass `0` to disable timeout. The default value can be changed by using the [Page.setDefaultTimeout()](./puppeteer.page.setdefaulttimeout.md) method. diff --git a/src/common/Page.ts b/src/common/Page.ts index d195f4d8a3c..e3ae8967ef7 100644 --- a/src/common/Page.ts +++ b/src/common/Page.ts @@ -3292,7 +3292,7 @@ export class Page extends EventEmitter { * visible, i.e. to not have `display: none` or `visibility: hidden` CSS * properties. Defaults to `false`. * - * - `hidden`: ait for element to not be found in the DOM or to be hidden, + * - `hidden`: Wait for element to not be found in the DOM or to be hidden, * i.e. have `display: none` or `visibility: hidden` CSS properties. Defaults to * `false`. *