Skip Navigation LinksHome Page > Forums > Rapise Forums > Rapise Issues & Questions > Issue with Capture screen...
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");
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;
unidentified on “img.save(g_reportHtmlpath)
This is no longer needed, this was only used on early versions of Rapise (v1.3 and earlier).
Please refer to this document:
The way with the current versions is just to change the Screen Capture setting of the current test.
And if you have any questions, please email or call us at +1 (202) 558-6885