Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allows set viewport for screenshot #406

Merged
merged 2 commits into from
Sep 26, 2023
Merged

Allows set viewport for screenshot #406

merged 2 commits into from
Sep 26, 2023

Conversation

erickgskovik
Copy link
Contributor

During screenshots, I found the window bounds doesn't change how the screenshot looks like.

And from my simple test for screenshoting a long page around 40000px height, Emulation.setDeviceMetricsOverride (8s) with deviceScaleFactor is faster than scale in Page.captureScreenshot (12s).

Fixes #389.

@route
Copy link
Member

route commented Sep 26, 2023

Looking good, thx!

@route route merged commit 020bd25 into rubycdp:main Sep 26, 2023
10 checks passed
@erickgskovik erickgskovik deleted the support-set-viewport branch September 26, 2023 17:57
@erickgskovik
Copy link
Contributor Author

Thanks! I have last one for #screenshot that I need some time to work on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Send Emulation commands to Page
2 participants