In my Automation, I’m doing a final validation. In final validation, I want to take screenshot and send it as an attachment. For 1 image file, I can make it. Now I have many screenshots.
I planned to create a file and store the image from there I will send it as an attachment.
And, I need to change the name of the screenshots that stores in file.
You can change the path of the folder to store the Image and also Name of the Screenshot in Take Screenshot activity, Check that it is by default settings in Config File that “Exception_Screenshot”, there you can change
Hope this helps
Check this post, same query with different file format.
as part of my project, I need to take multiple screenshots in various steps. In the end, all the images need to be added in a Word/PDF file and to be sent across via mail.
Please let me know how to add multiple images in a single Word/PDF file.
First read all images files from folder
arrImageFiles  = Directory.GetFiles("FolderPath","*.jpeg")
And then use
Word Application Scope activity and inside that Use ForEach loop to iterate that Array.
Word application scope
ForEach item in arrImageFiles
Use Add picture activity and pass item to it.
Finally send this Attachment through mail using Mail activities.
How manage the file name of the Screenshot, To store a Multiple image in a single file im going to change name of each Screenshot.
Just you want to insert images only right. Is it necessary to write image names also ?
no its okay if all the images in file stored in word/doc.
in case i need to have segregate the screenshot means - i need to identify the screenshot images.
okay if all the images in the file stored in word/doc.
Once try the above mentioned steps and let me know if you face any issues.
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.