Click or drag to resize
Ranorex

ElementSnapshotCapture Method (Element, Boolean)

Creates a new snapshot from a given (live) element instance.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static ElementSnapshot Capture(
	Element element,
	bool includeImage
)

Parameters

element
Type: Ranorex.CoreElement
The element to be snapshotted.
includeImage
Type: SystemBoolean
Defines if a screenshot of the element should be included in the snapshot.

Return Value

Type: ElementSnapshot
A snapshot of the element tree.
Remarks
Depending on the configuration setting CompleteAncestorSnapshot, the snapshot will include the complete subtree of all ancestor elements.
See Also