HI,
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.
best regards,
Manoj
Srini84
(Srinivas)
December 4, 2019, 5:46am
2
Hi,
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
Thanks
sarathi125
(Parthasarathi)
December 4, 2019, 5:47am
3
@Manoj_Kumar5 ,
Check this post, same query with different file format.
Hi,
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.
2 Likes
lakshman
(Ganta lakshman)
December 4, 2019, 5:49am
4
@Manoj_Kumar5
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.
5 Likes
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.
lakshman
(Ganta lakshman)
December 4, 2019, 11:39am
6
@Manoj_Kumar5
Just you want to insert images only right. Is it necessary to write image names also ?
1 Like
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.
1 Like
@lakshman
okay if all the images in the file stored in word/doc.
1 Like
lakshman
(Ganta lakshman)
December 5, 2019, 5:15am
9
@Manoj_Kumar5
Once try the above mentioned steps and let me know if you face any issues.
1 Like
system
(system)
Closed
December 8, 2019, 5:15am
10
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.