Take screenshot inside for each loop and Name it manual as well as automatic by Uipath

activities
studio

#1

1.I use to pass data from excel for a login functionality.
2.I use For Each Row activity to pass excel data.
3.Inside For Each Row ,used if condition to check validation are there.
4.if validations are there ,Take Screenshot and use Save Image to store in a place with a name.

Two question here :

  1. i want to know how can i change the name of the screenshot for each iterations automatically by uipath.
    2.i want to pass Screenshot name from excel.

#2

You have to use a combination of Take Screenshot Activity and Save Image Activity.


#3

I used takescreenshot and saveimage …but it replaces the captured image for every iteration . that is …image is replace with same name.


#4

In the save Image activity, are you setting the file name in the properties panel.
The file will be saved with a name given in the file name.


#5

So i should not give the file name in the property panel for SaveImage.
Im saving the output of Take Screenshot and adding that to a Image field in the property panel of SaveImage Activity added some directory with some name to Filename property ,so that it gets saved in some place

If a name or a directory is not given to Filename field , SaveImage shows error msg as “Filename was not supplied”.


#6

Check this workflow… Takes screenshot and saves the image with a name from the variable.Main.xaml (5.6 KB)


#7

Thanks Dude ,It worked