From e3eec248945015a4620e0d59c7c0e10b5f33dda3 Mon Sep 17 00:00:00 2001 From: Christian Davis Date: Sun, 15 Oct 2017 00:57:56 -0500 Subject: [PATCH] docs(api): add missing 'hidden' option on frame.waitForSelector --- docs/api.md | 1 + 1 file changed, 1 insertion(+) diff --git a/docs/api.md b/docs/api.md index f9f678250dc..2f81dbbb11c 100644 --- a/docs/api.md +++ b/docs/api.md @@ -1456,6 +1456,7 @@ puppeteer.launch().then(async browser => { - `selector` <[string]> A [selector] of an element to wait for, - `options` <[Object]> Optional waiting parameters - `visible` <[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` <[boolean]> 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` <[number]> maximum time to wait for in milliseconds. Defaults to `30000` (30 seconds). - returns: <[Promise]> Promise which resolves when element specified by selector string is added to DOM.