Robotic Process Automation

How can I capture a full-page screenshot of a long webpage using UiPath Studio activities?

CH Asked by Christopher Miller · 12-07-2025
0 upvotes 11,466 views 0 comments
The question

I am building an automation project that requires capturing a visual record of a dashboard before moving to the next task. I’m using the "Take Screenshot" activity, but it only captures the visible area on the screen rather than the entire scrolling webpage. Is there a specific property I should toggle, or do I need to integrate an extension to ensure the robot scrolls and captures the full document height without missing data below the fold?

3 answers

0
BR
Answered on 14-07-2025

The standard "Take Screenshot" activity in UiPath is indeed designed to capture only the current viewport (what you see on the monitor). To capture a full-page screenshot, you have a few options. One popular method is using the "Inject JS Script" activity with a snippet that calculates the total height of the document and scrolls the window accordingly. Alternatively, if you are using the modern "Check App/Browser" activity, look into the properties panel. Some newer updates allow for automated scrolling. Another professional approach is to use the "Export to PDF" functionality if the visual representation is for documentation, as it naturally handles multi-page layouts much better than a single long .png file would.

0
JE
Answered on 15-07-2025

Brenda has some great workarounds, but have you explored using the "Take Screenshot" activity specifically within a "Data Scraping" sequence to see if the selector can be narrowed down to a specific element rather than the whole window?

MI 16-07-2025

Jeffrey, targeting a specific element is actually a much more stable way to go! By indicating a specific container or div in the Selector Editor, UiPath focuses its "Take Screenshot" logic on that element's boundaries. This prevents the robot from capturing the browser address bar or taskbar icons, which makes the final image much cleaner for OCR or reporting purposes. Just make sure your "Simulate Click" or "Scroll Into View" is triggered first, otherwise, the element might not be rendered in the DOM when the capture happens.

0
HE
Answered on 17-07-2025

Don't forget to use the "Save Image" activity right after "Take Screenshot." The screenshot activity only stores the image in a variable; it doesn't actually create a file on your drive automatically.

CH 18-07-2025

I agree with Heather. This is a common mistake for beginners. You must pass the 'Image' variable from the screenshot activity directly into the 'Save Image' activity and provide a valid file path like "output/screenshot_" + Now.ToString("yyyyMMdd") + ".png".

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session