Click or drag to resize
Ranorex

ElementInfoCreate Method (Element, Element, RxPath, String, Boolean, Boolean, String, Boolean)

Creates a new element info given an element and a path.

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

Parameters

target
Type: Ranorex.CoreElement
The target element to create the info from.
rootElement
Type: Ranorex.CoreElement
The root element to create an additonal relative path to the target.
path
Type: Ranorex.CoreRxPath
The already constructed element path.
refPath
Type: SystemString
The reference path for the element. Can be null.
captureImage
Type: SystemBoolean
Specifies whether to capture a screenshot for the element.
captureLineage
Type: SystemBoolean
if set to true also capture all parents.
sourceName
Type: SystemString
An arbitrary source name.
includeDynamicAttributeValues
Type: SystemBoolean
Specifies whether to include values from dynamic attributes in the Element snapshot.

Return Value

Type: ElementInfo
The created ElementInfo.
See Also