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