Click or drag to resize
Ranorex

ReportSnapshot Method (ReportLevel, String, String, Element, IReportMetadata)

Creates and stores a snapshot of the specified target element and adds a link to the snapshot to the report.

Namespace:  Ranorex
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static void Snapshot(
	ReportLevel level,
	string category,
	string message,
	Element target,
	params IReportMetadata[] metaData
)

Parameters

level
Type: RanorexReportLevel
The reporting level of the message.
category
Type: SystemString
The category name.
message
Type: SystemString
An optional message to log to the report.
target
Type: Ranorex.CoreElement
The target element to create the snapshot of.
metaData
Type: Ranorex.CoreIReportMetadata
Advanced reference information for use in the report. Used by Ranorex internally.
Exceptions
ExceptionCondition
ArgumentNullExceptionIf target is null.
See Also