docs(api): warn about slow screenshots on OS X (#2326)

This commit is contained in:
Andrey Lushnikov 2018-04-07 18:01:31 -07:00 committed by GitHub
parent 57fa690724
commit 717d4a7ada
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1162,6 +1162,8 @@ Shortcut for [page.mainFrame().executionContext().queryObjects(prototypeHandle)]
- `omitBackground` <[boolean]> Hides default white background and allows capturing screenshots with transparency. Defaults to `false`.
- returns: <[Promise]<[Buffer]>> Promise which resolves to buffer with captured screenshot
> **NOTE** Screenshots take at least 1/6 second on OS X. See https://crbug.com/741689 for discussion.
#### page.select(selector, ...values)
- `selector` <[string]> A [selector] to query page for
- `...values` <...[string]> Values of options to select. If the `<select>` has the `multiple` attribute, all values are considered, otherwise only the first one is taken into account.