Automation Guide
Action-based testing language
TestArchitect Automation Classes
Automation classes
AbtList
The requested page is not available for selected version.
GetItemRectByText
Syntax
TARect GetItemRectByText (string text)
Description
Retrieve the bounding rectangle of a list item by its text content.
Parameters
text
String value specifying the text content of the list item.
Return Value
TARect object representing the bounding rectangle of the item. The object contains the following elements:
- left: Horizontal coordinate of left border of the bounding rectangle relative to the left side of the calling object.
- top: Vertical coordinate of top of the bounding rectangle relative to the top of the calling object.
- width: Width of the bounding rectangle.
- height: Height of the bounding rectangle.
Note: all values are in pixels.
Notes
- This method is applicable to both ListBox and ListView controls.