 | 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
Syntaxpublic static ElementInfo Create(
Element target,
Element rootElement,
RxPath path,
string refPath,
bool captureImage,
bool captureLineage,
string sourceName,
bool includeDynamicAttributeValues
)
Public Shared Function Create (
target As Element,
rootElement As Element,
path As RxPath,
refPath As String,
captureImage As Boolean,
captureLineage As Boolean,
sourceName As String,
includeDynamicAttributeValues As Boolean
) As ElementInfo
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:
ElementInfoThe created ElementInfo.
See Also