 | ElementInfoCreate Method (Element, RxPath, String, Boolean, Boolean, String) |
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,
RxPath path,
string refPath,
bool captureImage,
bool captureLineage,
string sourceName
)
Public Shared Function Create (
target As Element,
path As RxPath,
refPath As String,
captureImage As Boolean,
captureLineage As Boolean,
sourceName As String
) As ElementInfo
Parameters
- target
- Type: Ranorex.CoreElement
The target element to create the info from. - 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.
Return Value
Type:
ElementInfoThe created ElementInfo.
See Also