Click or drag to resize
Ranorex

ReportScreenshot Method (String, Element)

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
)

Parameters

message
Type: SystemString
An optional message for the screenshot.
target
Type: Ranorex.CoreElement
The element to make the screenshot from.
Remarks
Screenshots will not show up in the console logger.
See Also