cheeaun / cheeaun/puppetron

How to use clipSelector for screenshot

Open
#6 2 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
JavaScript
Stars
554
Forks
93
PR merge metrics
No merged PRs in 30d

Description

How to use clipSelector for screenshot?

This works just fine:
https://puppetron.now.sh/screenshot/http://www.xe.com/currencycharts/%3Ffrom%3DUSD%26to%3DCAD%26view%3D1D?width=500&height=900

However, after adding `&clipSelector=div.module.clearfix` to the end of it, it is no longer working:

https://puppetron.now.sh/screenshot/http://www.xe.com/currencycharts/%3Ffrom%3DUSD%26to%3DCAD%26view%3D1D?width=500&height=900&clipSelector=div.module.clearfix

I got:

```
Oops. Something is wrong.

Protocol error (Emulation.setDeviceMetricsOverride): Invalid parameters height: integer value expected

```

Is it a bug?

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.