Skip to content

captureEntirePageScreenshotAndWait (UI Automation - Synchronization)

Compatible with:
  • Purpose
  • Generated from captureEntirePageScreenshot(filename, kwargs)
  • Saves the entire contents of the current window canvas to a PNG file. Contrast this with the captureScreenshot command, which captures the contents of the OS view port (i.e. whatever is currently being displayed on the monitor), and is implemented in the RC only. 
  • This command waits to complete it's action for a default timeout. The default timeout differs in QaSCRIBE and Worksoft SaaS Cloud Platform.
  • Currently this only works in Firefox when running in chrome mode, and in IE non-HTA using the EXPERIMENTAL "Snapsie" utility. The Firefox implementation is mostly borrowed from the Screengrab! Firefox extension. 
  • Please see http://www.screengrab.org and http://snapsie.sourceforge.net/ for details.
  • Syntax
  • captureEntirePageScreenshotAndWait(filename, kwargs)
  • Target
  • filename - the path to the file to persist the screenshot as. No filename extension will be appended by default. Directories will not be created if they do not exist, and an exception will be thrown, possibly by native code.
  • Value
  • kwargs - a kwargs string that modifies the way the screenshot is captured. Example: 'background=#CCFFDD' . Currently valid options:'background'.
  • Background: The background CSS for the HTML document. This may be useful to set for capturing screenshots of less-than-ideal layouts, for example where absolute positioning causes the calculation of the canvas dimension to fail and a black background is exposed (possibly obscuring black text).
  • Return Value
  • N/A
 
 

Feedback and Knowledge Base