Hi,
I want to take the screenshot of the final validation step of my test case in run time and save that in a specific path and compare it
Please help me in this issue
Regards
How to take screenshot in Ranorex
Re: How to take screenshot in Ranorex
Try these APIs:
or:
Then save it:
Code: Select all
Bitmap bmp = Ranorex.Imaging.CaptureDesktopImage(element);
CompressedImage image = new CompressedImage(bmp, ImageFormat.Png);
Code: Select all
CompressedImage image = Ranorex.Imaging.CaptureCompressedImage(element);
Code: Select all
CompressedImage image = ...(element);
image.Store(filename);