Skip Navigation LinksHome Page > Forums > Rapise Forums > Rapise Issues & Questions > Issue with Capture screen...
Hi,
While using your demo version for Rapise Automation Tool, I was facing some issue on Capturing the screenshots (When objects are not found), I used the below code.
I tried the help document provided, but still unable to resolve the issue, could you please guide me to the exact flow on how we can capture screenshots while execution when objects are not found.
var desktopWnd = g_util.GetDesktopWindow();
var img = new ActiveXObject("SeSWrappers.Utils.ImageWrapper");
img.Capture(desktopWnd.PosX, desktopWnd.PosY, desktopWnd.PosWidth, desktopWnd.PosHeight);
var d = new Date();
//"Img\Img" & Day(Date)& Month(Date) & Year(Date) & Hour(Now) & Minute(Now) & Second(Now) &".jpg"
var strDateTime = d.getDate()+"_"+d.getMonth()+"_"+d.getFullYear()+"_"+d.getHours()+"_"+d.getMinutes()+"_"+d.getSeconds()+".jpg";
g_reportHtmlPath = "path"+strDateTime;
img.save(g_reportHtmlPath);
console.log(img)
object is unidentified on “img.save(g_reportHtmlpath)
Hi Neeta
This is no longer needed, this was only used on early versions of Rapise (v1.3 and earlier).
Please refer to this document:
https://www.inflectra.com/Rapise/Guides/Capture-Screenshots-During-Playback.aspx
The way with the current versions is just to change the Screen Capture setting of the current test.
Regards
Adam
And if you have any questions, please email or call us at +1 (202) 558-6885