Click or drag to resize
Ranorex

IElement Methods

The IElement 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 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 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 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 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 robust RxPath to the element.
Public methodHasCapability
Tests if the element possesses a certain capability (or role), by name.
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.
Public methodSetAttributeValue(String, Object)
Sets the value of an attribute.
Public methodSetAttributeValue(String, String)
Sets the value of an attribute.
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