Thread

Skip Navigation LinksForums > Rapise Forums > Rapise Issues & Questions > Issue with Capture screen...

Issue with Capture screenshot RSS Feed

Thursday, December 4, 2014

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();

var img = new ActiveXObject("SeSWrappers.Utils.ImageWrapper");

//"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)

1 Replies
Adam SAdam S
re: neeta S shevkar on Thursday, December 4, 2014
Monday, December 8, 2014

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:

http://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

Tagged
Statistics
  • Started: 12/4/2014
  • Last Reply: 12/8/2014
  • Replies: 1
  • Views: 573
Powered by KronoDesk v1.1.0.15 | © Copyright Inflectra Corporation 2011-2016 | Licensed to Inflectra Corporation.