Save screenshot with adhoc names

uiautomation
studio

#1

Hi All

Is there a way where we can save screenshots in a common path with different names where we should use a specific Number taken from excel for naming for example if there is a component named “ID” and we need to save the screen shot with “Image+ID.png” so that we will be able to differentiate.


#2

Hi

Yes, you should have your Take Screenshot activity in a loop with a Int32 counter (let’s say you declare it as “i”) and at the end of the loop you have an assign with i=i+1. In the filepath of the Take Screenshot you can use your path as “C/Documents/CommonFolder/ScreenshotNumber”+i.tostring+".png"

Bogdan


#3

Hi thank you so much it worked, I was using for each loop for recording used the same output in the save image also. Thanks again. :slight_smile: