<rss version="2.0" xmlns:a10="http://www.w3.org/2005/Atom"><channel><title>Inflectra Customer Forums: Issue with Capture screenshot (Thread)</title><description>&#xD;
&#xD;
&#xD;
  Hi,  &#xD;
&#xD;
&#xD;
&#xD;
  While using&#xD;
your demo version for Rapise Automation Tool, I was facing some issue on&#xD;
Capturing the screenshots (When objects are not found), I used the below code.  &#xD;
&#xD;
  I tried the&#xD;
help document provided, but still unable to resolve the issue, could you please&#xD;
guide me to the exact flow on how we can capture screenshots while execution&#xD;
when objects are not found.  &#xD;
&#xD;
&#xD;
&#xD;
  var   desktopWnd =   g_util  .GetDesktopWindow();  &#xD;
&#xD;
  var   img =   new   ActiveXObject(  "SeSWrappers.Utils.ImageWrapper"  );  &#xD;
&#xD;
    img.Capture(desktopWnd.PosX, desktopWnd.PosY,&#xD;
desktopWnd.PosWidth, desktopWnd.PosHeight);  &#xD;
&#xD;
  var   d =   new Date  ();  &#xD;
&#xD;
  var   img =   new   ActiveXObject(  "SeSWrappers.Utils.ImageWrapper"  );  &#xD;
&#xD;
  //"Img\Img" &amp; Day(Date)&amp; Month(Date) &amp; Year(Date)&#xD;
&amp; Hour(Now) &amp; Minute(Now) &amp; Second(Now) &amp;".jpg"  &#xD;
&#xD;
  var   strDateTime = d.getDate()+  "_"  +d.getMonth()+  "_"  +d.getFullYear()+  "_"  +d.getHours()+  "_"  +d.getMinutes()+  "_"  +d.getSeconds()+  ".jpg"  ;  &#xD;
&#xD;
    g_reportHtmlPath =   "path"  +strDateTime;  &#xD;
&#xD;
    img.save(g_reportHtmlPath);  &#xD;
&#xD;
  console.log(img)    &#xD;
&#xD;
&#xD;
&#xD;
  object is&#xD;
unidentified on “img.save(g_reportHtmlpath)  &#xD;
&#xD;
&#xD;
&#xD;
</description><language>en-US</language><copyright>(C) Copyright 2006-2026 Inflectra Corporation.</copyright><managingEditor>support@inflectra.com</managingEditor><category domain="http://www.dmoz.org">/Computers/Software/Project_Management/</category><category domain="http://www.dmoz.org">/Computers/Software/Quality_Assurance/</category><generator>KronoDesk</generator><a10:contributor><a10:email>support@inflectra.com</a10:email></a10:contributor><a10:id>http://www.inflectra.com/kronodesk/forums/threads</a10:id><ttl>120</ttl><link>/Support/Forum/rapise/issues-questions/1091.aspx</link><item><guid isPermaLink="false">threadId=1091</guid><author>neeta S shevkar (neeta.shevkar@synechron.com)</author><category domain="http://www.inflectra.com/kronodesk/thread/tag">screenshot</category><title>Issue with Capture screenshot</title><description>&#xD;
&#xD;
&#xD;
  Hi,  &#xD;
&#xD;
&#xD;
&#xD;
  While using&#xD;
your demo version for Rapise Automation Tool, I was facing some issue on&#xD;
Capturing the screenshots (When objects are not found), I used the below code.  &#xD;
&#xD;
  I tried the&#xD;
help document provided, but still unable to resolve the issue, could you please&#xD;
guide me to the exact flow on how we can capture screenshots while execution&#xD;
when objects are not found.  &#xD;
&#xD;
&#xD;
&#xD;
  var   desktopWnd =   g_util  .GetDesktopWindow();  &#xD;
&#xD;
  var   img =   new   ActiveXObject(  "SeSWrappers.Utils.ImageWrapper"  );  &#xD;
&#xD;
    img.Capture(desktopWnd.PosX, desktopWnd.PosY,&#xD;
desktopWnd.PosWidth, desktopWnd.PosHeight);  &#xD;
&#xD;
  var   d =   new Date  ();  &#xD;
&#xD;
  var   img =   new   ActiveXObject(  "SeSWrappers.Utils.ImageWrapper"  );  &#xD;
&#xD;
  //"Img\Img" &amp; Day(Date)&amp; Month(Date) &amp; Year(Date)&#xD;
&amp; Hour(Now) &amp; Minute(Now) &amp; Second(Now) &amp;".jpg"  &#xD;
&#xD;
  var   strDateTime = d.getDate()+  "_"  +d.getMonth()+  "_"  +d.getFullYear()+  "_"  +d.getHours()+  "_"  +d.getMinutes()+  "_"  +d.getSeconds()+  ".jpg"  ;  &#xD;
&#xD;
    g_reportHtmlPath =   "path"  +strDateTime;  &#xD;
&#xD;
    img.save(g_reportHtmlPath);  &#xD;
&#xD;
  console.log(img)    &#xD;
&#xD;
&#xD;
&#xD;
  object is&#xD;
unidentified on “img.save(g_reportHtmlpath)  &#xD;
&#xD;
&#xD;
&#xD;
</description><pubDate>Thu, 04 Dec 2014 11:22:10 -0500</pubDate><a10:updated>2014-12-08T18:57:36-05:00</a10:updated><link>/Support/Forum/rapise/issues-questions/1091.aspx</link></item><item><guid isPermaLink="false">messageId=1955</guid><author>David J (adam.sandman+support@inflectra.com)</author><title> &#xD;
&#xD;
&#xD;
Hi Neeta  This is no longer needed, this was only used on early versions of Rapise (v1.3 and </title><description> &#xD;
&#xD;
&#xD;
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 </description><pubDate>Mon, 08 Dec 2014 18:57:36 -0500</pubDate><a10:updated>2014-12-08T18:57:36-05:00</a10:updated><link>/Support/Forum/rapise/issues-questions/1091.aspx#reply1955</link></item></channel></rss>