Click or drag to resize
Ranorex

Element Methods

The Element type exposes the following members.

Methods
  NameDescription
Public methodAsT
Returns an adapter of the specified type for the element.
Public methodCaptureCompressedImage
Captures a PNG image of the element.
Public methodCreateObjRef
Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.
(Inherited from MarshalByRefObject.)
Public methodEnsureVisible
Tries to make the element visible to the user. This is usually accomplished by bringing the element or one of its ancestors to foreground.
Public methodEquals(Object)
Compares the element to an object.
(Overrides ObjectEquals(Object).)
Public methodStatic memberEquals(Element, Element)
Returns true if the two instances are considered equal.
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 methodFind(RxPath)
Applies a Ranorex Path to the element.
Public methodFind(RxPath, Duration)
Applies a Ranorex Path to the element.
Public methodFindFromPoint(Point)
Find an element by screen location. The found element is a descendant of this instance or this instance itself.
Public methodFindFromPoint(Point, RxPath)
Find an element by screen location and build its RxPath. The found element is a descendant of this instance or this instance itself.
Public methodFindFromUid
Finds a descendant element by its unique identifier attribute (defined by the owner flavor UidAttribute name).
Public methodFindSingle(RxPath)
Applies a Ranorex Path to the element.
Public methodFindSingle(RxPath, Duration)
Applies a Ranorex Path to the element.
Public methodFocus
Tries to set the focus on the element.
Public methodStatic memberFromPath
Converts a string to an element instance by searching the root.
Public methodGetAttributeValue
Returns the value of an attribute.
Public methodGetAttributeValueText(String)
Returns the value of an attribute converted to its string representation.
Public methodGetAttributeValueText(String, Regex)
Returns the value of an attribute converted to its string representation. If a regex is provided, only the part of the string representation matching the regular expression is returned.
Public methodGetHashCode
Default implementation override.
(Overrides ObjectGetHashCode.)
Public methodGetLifetimeService
Retrieves the current lifetime service object that controls the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodGetObjectData
For Ranorex internal use only. Populates a SerializationInfo with the data needed to serialize the target object.
Public methodGetPath(PathBuildMode)
Builds an absolute RxPath to the element.
Public methodGetPath(PathBuildMode, Element)
Builds an RxPath to the element, relative to another element.
Public methodGetRobustPath
Builds an absolute RxPath to the element.
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Public methodHasCapability
Tests if the element possesses a certain capability (or role), by name.
Public methodInitializeLifetimeService
Obtains a lifetime service object to control the lifetime policy for this instance.
(Inherited from MarshalByRefObject.)
Public methodInvokeAction
Invokes an action on the element.
Public methodInvokeActionWithText
Invokes an action on the element.
Public methodIsAncestor
Determines whether the current element is an ancestor of the specified child element.
Public methodIsEqual
Compares two elements by comparing their flavor elements or their screen rectangles if no flavor comparison is possible.
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Protected methodMemberwiseClone(Boolean)
Creates a shallow copy of the current MarshalByRefObject object.
(Inherited from MarshalByRefObject.)
Public methodSetAttributeValue(String, Object)
Sets the value of an attribute.
Public methodSetAttributeValue(String, String)
Sets the value of an attribute.
Public methodToString
Returns a String that represents the current Object.
(Overrides ObjectToString.)
Public methodTryFindSingle(RxPath, Element)
Tries to apply a Ranorex Path to the element.
Public methodTryFindSingle(RxPath, Duration, Element)
Tries to apply a Ranorex Path to the element.
Top
See Also