|
WinControl getAncestorByUiaType(String typeName) |
|
Parameters |
typeName |
The type name.
|
Returns |
The ancestor or null .
|
|
WinControl getChild(int index) |
|
Parameters |
index |
The index.
|
Returns |
The child.
|
Throws |
IllegalArgumentException |
If index is negative or exceeds the number of child nodes.
|
|
int getChildCount() |
|
Returns |
The child count.
|
|
WinControl[] getChildren() |
|
Returns |
An array with the children.
|
|
WinControl[] getChildrenByUiaClassName(String className) |
|
Parameters |
className |
The class name.
|
Returns |
An array with the children.
|
|
WinControl[] getChildrenByUiaType(String typeName) |
|
Parameters |
typeName |
The type name.
|
Returns |
An array with the children.
|
|
WinControl[] getElementsByClassName(String className) |
|
Parameters |
className |
The class name to be matched.
|
Returns |
An array of WinControl objects, which have the current object as
ancestor and match the given class name.
|
|
WinControl[] getElementsByClassName(String[] classNames) |
|
Parameters |
classNames |
The class names to be matched.
|
Returns |
An array of WinControl objects, which have the current object as
ancestor and match any of the given class names.
|
|
WinControl[] getElementsByClassName(String[] classNames, String[] stopClassNames) |
|
Parameters |
classNames |
The class names to be matched.
|
stopClassNames |
The stop class names.
|
Returns |
An array with the matching descendants.
|
|
String[] getGenericClassNames() |
|
Returns | An array of Strings with the generic class names of the control. |
|
int getHwnd() |
|
Returns |
The native window handle.
|
|
int[] getLocation() |
|
Returns |
An array with the X and Y coordinates.
|
|
int[] getLocationOnScreen() |
|
Returns |
An array with X, Y, width and height.
|
|
WinControl getNextSibling() |
|
Returns |
The next sibling or null .
|
|
String getPatterns() |
|
Returns |
A string with the patterns of the element.
|
|
int[] getSize() |
|
Returns |
An array with the width and the height.
|
|
String getTextOrValue() |
|
Returns |
A value or null .
|
|
WinControl getTopAncestor() |
|
Returns |
The top-level ancestor or null .
|
|
String getUiaClassName() |
|
Returns | A String with the class name of the control. |
|
AutomationBase getUiaControl() |
|
Returns |
The AutomationBase object.
|
|
String getUiaDescription() |
|
Returns |
The description, if any or an empty string.
|
|
String getUiaHelp() |
|
Returns |
The help text, if any or an empty string.
|
|
String getUiaId() |
|
Returns |
The ID, if any or null .
|
|
String getUiaName() |
|
Returns |
The name, if any or null .
|
|
String getUiaType() |
|
Returns | A String with the type of the control. |
|
boolean hasPattern(String pattern) |
|
Parameters |
pattern |
The pattern name, e.g, "Invoke", "ExpandCollapse", etc.
|
Returns | true if the pattern is supported by the element,
false otherwise.
|
|
boolean isMatchingClass(String className) |
|
Parameters |
className |
The class name to be checked.
|
Returns | true if the control matches the given class name,
false otherwise.
|
|
boolean isMatchingClass(String[] classNames) |
|
Parameters |
classNames |
The class names to be checked.
|
Returns | true if the control matches one of the given class names,
false otherwise.
|
|
boolean isShowing() |
|
Returns | true , when the control is considered to be visible on the screen,
false otherwise.
|
|