How to take a screenshot of any page of a browser

I am doing an exception handling for unknown exceptions or exceptions that aren’t specified in my project. I move from page to page of a certain software, and if an error occured, I’ll take a screenshot of it. My problem is, my since it covers all of the unknown exception of all of the workflows inside the try block. I can’t identify what page the error occured, I want(if possible) to make the take screenshot activity, to screenshot regardless of what is the page title or in which page the execution stopped.

Hi @Archie

Use Try catch Surrounded by a Process and Catch the selector not found exception

And In the Catch block use take screen shot activity and save as Image!

Regards

@Archie

If you are using Re-Framework the exception is raised means there was a screenshot activity which takes screenshots and save in the Exception screenshots folder in Re-Framework

If you are not using Re-Framework then try as @pravin_calvin suggested

Hope this will help you

Thanks

Thanks! It worked

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.