i want take an screenshot on a web page and then i need to mail that screenshot as an attachment through mail
Hi @manoj2500
Please use Take Screenshot activity
After that, use Save Image activity to save the screenshot
i that activity the output is image so i can save that as variable and then pass in the email or how it works
Once you saved the screenshot using the Save Image activity, you can attach it in the email
If you want it in the body, please refer to this post:
use take screen shot activity and save image activity file , later you can attach it in the mail
fyi Reusable componentTakeScreenshot.xaml (8.6 KB)
So here are the steps:
- Use Take Screenshot activity to capture the web page. The output is an Image variable. Let’s say the variable name is imgTrial
- Use Save Image activity. Supply the FileName (e.g. screenshot.jpg) then the Image property should be imgTrial.
- Once done saving, attach it to the email. If you want the image to be in the body, you can use HTML. I posted the post above:
Then make sure that the isBodyHtml option is checked
Hope this helps.
Thanks and regards