Action
Returns the object-relative rectangle of the specified text.
Syntax
result = testObject.TextRectangle(text, [occurrence, searchRectangle, timeout, exactMatch])
Variable |
Description |
result |
The rectangle of the specified text or an empty rectangle if the specified text does not exist. Rectangle. |
text |
The text to be searched for. String. |
occurrence |
Optional: For which occurrence of the text the rectangle should be returned, if there are multiple results. The first occurrence is 1. Integer. |
searchRectangle |
Optional: The object relative rectangle in which to search the text. Rectangle. |
timeout |
Optional: Specifies how long the text should be searched for. If no timeout is specified the text is searched only once. Integer. |
exactMatch |
Optional: If true the text must completely match the captured text, otherwise a partial match is allowed. Boolean. |