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!
I am using the chrome devtools protocol to capture a screenshot of part of a page. In the documentation, there is an optional
clipparameter listed for thePage.captureScreenshotcall, which is supposed to only take a screenshot of the specified part of the page.However, even when I pass a value for the
clipparameter, 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!