 | ElementSnapshotCapture Method (Element, Boolean) |
Creates a new snapshot from a given (live) element instance.
Namespace:
Ranorex.Core
Assembly:
Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntaxpublic static ElementSnapshot Capture(
Element element,
bool includeImage
)
Public Shared Function Capture (
element As Element,
includeImage As Boolean
) As ElementSnapshot
Parameters
- element
- Type: Ranorex.CoreElement
The element to be snapshotted. - includeImage
- Type: SystemBoolean
Defines if a screenshot of the element should be included in the snapshot.
Return Value
Type:
ElementSnapshotA snapshot of the element tree.
RemarksDepending on the configuration setting
CompleteAncestorSnapshot,
the snapshot will include the complete subtree of all ancestor elements.
See Also