Skip to content

Commit

Permalink
docs(api.md): update returned value description (#3514)
Browse files Browse the repository at this point in the history
  • Loading branch information
vsemozhetbyt authored and aslushnikov committed Nov 9, 2018
1 parent 79ec7a3 commit 59e7e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/api.md
Expand Up @@ -3055,7 +3055,7 @@ If `key` is a single character and no modifier keys besides `Shift` are being he
#### elementHandle.screenshot([options])
- `options` <[Object]> Same options as in [page.screenshot](#pagescreenshotoptions).
- returns: <[Promise]<[string]|[Buffer]>> Promise which resolves to buffer with captured screenshot.
- returns: <[Promise]<[string]|[Buffer]>> Promise which resolves to buffer or a base64 string (depending on the value of `options.encoding`) with captured screenshot.

This method scrolls element into view if needed, and then uses [page.screenshot](#pagescreenshotoptions) to take a screenshot of the element.
If the element is detached from DOM, the method throws an error.
Expand Down

0 comments on commit 59e7e8c

Please sign in to comment.