Skip to main content
AI agents are now live in Website Scanner! Enter your URL and fix website issues 3x faster with AI. Explore now!
No Result Found
Connect & Get help from fellow developers on our Discord community. Ask the CommunityAsk the Community

Capture screenshots at different viewport widths in Percy on Automate

Learn how to capture screenshots at different viewport widths in Percy on Automate

Percy captures screenshots at the current browser window size during your Automate test run. Viewport width is controlled using Automate’s window resizing APIs, not Percy.

To capture screenshots at multiple widths, resize the browser window before calling percyScreenshot. You can use the same snapshot name to associate screenshots captured at different widths with the same snapshot in Percy.

Java
Copy icon Copy

This uses standard BrowserStack Automate functionality to resize the browser window.

Need more support? Contact BrowserStack.

Reference Topic

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback

Is this page helping you?

Yes
No

We're sorry to hear that. Please share your feedback so we can do better

Contact our Support team for immediate help while we work on improving our docs.

We're continuously improving our docs. We'd love to know what you liked





Thank you for your valuable feedback!

Talk to an Expert
Download Copy Check Circle