Click or drag to resize
Ranorex

ReportScreenshot Method (String, Element, Boolean)

Logs a message containing a screenshot of a specified element.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void Screenshot(
	string message,
	Element target,
	bool highlightWithinSurroundingArea
)

Parameters

message
Type: SystemString
An optional message for the screenshot.
target
Type: Ranorex.CoreElement
The element to make the screenshot from.
highlightWithinSurroundingArea
Type: SystemBoolean
If set to true the screenshot will not only contain the element, but also its surrounding area and will highlight the element within it.
Remarks
Screenshots will not show up in the console logger.
See Also