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

Get screenshot of a particular element #44

Open
abhishekgoyal1994 opened this issue Jul 10, 2020 · 1 comment
Open

Get screenshot of a particular element #44

abhishekgoyal1994 opened this issue Jul 10, 2020 · 1 comment

Comments

@abhishekgoyal1994
Copy link

Hi,

I see that chrome dev tools has an option in commands menu to take screenshot of a specific element. I didn't find this in any of the APIs provided by dev tools protocol. I tried using the Page.captureScreenshot with the required viewport that I want, but its not working when the element is outside of view-port and requires scroll. Requesting your help on, to take screenshots of elements outside of viewport (which are visible after desired scrolling).

@abhishekgoyal1994
Copy link
Author

I see that your examples only have full screenshot example. Can u please provide an example of taking snapshot for a particular element?

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

No branches or pull requests

1 participant