Click or drag to resize
Ranorex

ElementSnapshot Class

Represents the container for a tree of element snapshots.
Inheritance Hierarchy
SystemObject
  Ranorex.CoreElementSnapshot

Namespace:  Ranorex.Core
Assembly:  Ranorex.Core (in Ranorex.Core.dll) Version: 12.7.4-git.38314c06
Syntax
public class ElementSnapshot

The ElementSnapshot type exposes the following members.

Properties
  NameDescription
Public propertyConfig
Gets the configuration that was used to create the snapshot with.
Public propertyDescription
An optional description of the snapshot.
Public propertyElement
The snapshotted element that the snapshot was created for, i.e. the returned snapshotted element corresponds to the element passed to the Capture method.
Public propertyRootElement
The root element of the snapshotted element tree.
Public propertyScreenShot
A screenshot of the previously captured element.
Public propertyTimeStamp
The timestamp when the snapshot was made.
Top
Methods
  NameDescription
Public methodStatic memberCapture(Element, Boolean)
Creates a new snapshot from a given (live) element instance.
Public methodStatic memberCapture(Element, Boolean, Boolean)
Creates a new snapshot from a given (live) element instance.
Public methodStatic memberCreateFromFile
Load a snapshot from a file and create an instance for it.
Public methodStatic memberCreateSimpleClone(Element, Int32)
Creates a simple clone snapshot of the element.
Public methodStatic memberCreateSimpleClone(Element, Int32, Boolean)
Creates a simple clone snapshot of the element.
Public methodStatic memberDeserializeXml(XmlDoc)
Creates a snapshot from an XML document.
Public methodStatic memberDeserializeXml(String)
Creates a snapshot from an XML document string.
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object.)
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSaveToFile
Saves the snapshot to a file.
Public methodSerializeXml
Serializes the complete snapshot as an XML document string.
Public methodSerializeXmlDoc
Serializes the complete snapshot as an XML document.
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Top
See Also