This is test page for _takePageScreenShot api for the elements inside scrolled element.
_takePageScreenShot

Since Sahi Pro: 6.0.0
Since Sahi OS: NA

_takePageScreenShot([$element[, $fileSysPath[, $noLog[, $props]]]])

Arguments
$elementHTML DOM element optionalIf specified, a full page screenshot of the element would be taken
$fileSysPathstring optionalFile system path to save a copy of the screenshot, additionally to. Relative paths will be resolved relative to current executing script. Default is null.
$noLogboolean optionalPass true to prevent embedding the image in the playback log. Default is false
$propsobject optionalProperties to specify for image delay, scrollLimit, trim, format and image compression in percentage(resizePercentage).
1. delay, integer, optional, time delay between scroll and screenshot in milliseconds.
For long pages, the page is scrolled, individual screenshots are taken and then stitched.
Sometimes images on the page may load slowly on scroll and a wait may be needed between scroll and screenshot.
Default is 100 ms.
2. scrollLimit, integer, optional, height in pixels. Maximum scroll size in pixels for a page/element. Default is 200000.
3. trim, boolean, optional, Trim the image for blank space. Default is true. This works only if Graphics Magick is installed and configured correctly. Fails silently if not installed.
4. format, string, optional, can be GIF, JPG or PNG
Default is "sahi.takeScreenShot_image.format" property defined in config/sahi.properties. This can be overridden in userdata/config/userdata.properties
5. resizePercentage, integer, optional
Default is "sahi.takeScreenShot_image.resize_percentage" property defined in config/sahi.properties. This can be overridden in userdata/config/userdata.properties. 100 means no compression.

Details

Takes a full page screenshot of a web page by scrolling to the end of the page and embeds the image in the playback log.
If the element attribute is specified, a full page screenshot of the browser element is taken, instead of the web page.
Since Sahi works without bringing the window into focus, we first need to call _focusWindow to bring the window into focus.

_focusWindow(); // Brings window into focus
				_takePageScreenShot(); // Captures the full browser page screenshot
				_takePageScreenShot(_table("t4")); // Captures the table screenshot
				// Captures table screenshot with jpg format, compresses file size to 75% of the full size, saves it to D:\dev\capture.jpg
				// without embedding image in the playback log
				_takePageScreenShot(_table("t4"), "D:\\dev\\capture.jpg", true, {format:'jpg', resizePercentage:75});
warning If _sahi.SKIP_SCREENSHOTS is specified as true, this API will be skipped.
$elementHTML DOM element optionalIf specified, a full page screenshot of the element would be taken
$fileSysPathstring optionalFile system path to save a copy of the screenshot, additionally to. Relative paths will be resolved relative to current executing script. Default is null.
$noLogboolean optionalPass true to prevent embedding the image in the playback log. Default is false
$propsobject optionalProperties to specify for image delay, scrollLimit, trim, format and image compression in percentage(resizePercentage).
1. delay, integer, optional, time delay between scroll and screenshot in milliseconds.
For long pages, the page is scrolled, individual screenshots are taken and then stitched.
Sometimes images on the page may load slowly on scroll and a wait may be needed between scroll and screenshot.
Default is 100 ms.
2. scrollLimit, integer, optional, height in pixels. Maximum scroll size in pixels for a page/element. Default is 200000.
3. trim, boolean, optional, Trim the image for blank space. Default is true. This works only if Graphics Magick is installed and configured correctly. Fails silently if not installed.
4. format, string, optional, can be GIF, JPG or PNG
Default is "sahi.takeScreenShot_image.format" property defined in config/sahi.properties. This can be overridden in userdata/config/userdata.properties
5. resizePercentage, integer, optional
Default is "sahi.takeScreenShot_image.resize_percentage" property defined in config/sahi.properties. This can be overridden in userdata/config/userdata.properties. 100 means no compression.