docs(api): add missing 'hidden' option on frame.waitForSelector

This commit is contained in:
Christian Davis 2017-10-15 00:57:56 -05:00 committed by Andrey Lushnikov
parent 5686d53808
commit e3eec24894

View File

@ -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.