Click or drag to resize
Ranorex

ElementInfoCreate Method (Element, Boolean, Boolean, String)

Creates a new element info from a given element.

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public static ElementInfo Create(
	Element target,
	bool captureImage,
	bool captureLineage,
	string sourceName
)

Parameters

target
Type: Ranorex.CoreElement
The target element to create the info from.
captureImage
Type: SystemBoolean
Set to true if an image should be captured.
captureLineage
Type: SystemBoolean
if set to true also capture all parents.
sourceName
Type: SystemString
An arbitrary source name.

Return Value

Type: ElementInfo
The created ElementInfo.
See Also