Skip to content

Page.captureScreenshot partial page screenshot #51

@bmikkelsen22

Description

@bmikkelsen22

I am using the chrome devtools protocol to capture a screenshot of part of a page. In the documentation, there is an optional clip parameter listed for the Page.captureScreenshot call, which is supposed to only take a screenshot of the specified part of the page.

However, even when I pass a value for the clip parameter, the entire page's screenshot is returned.

Is this an issue with my code/understanding of the documentation, or could this be an error? I am using chrome beta 61 by the way.

Here's my code:
https://gist.github.com/bmikkelsen22/8510c05a0dec4de1001b10f99074aace#file-screenshot-ts-L73
Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions