Method ReportText
Reads the text from the object and reports into Test ResultsUsage
Function ReportText(
Boolean AlternativeMethod [Optional]
)
Parameters
AlternativeMethod (optional)
Type: Boolean
Default value: False
Uses an alternative method to get text form an object. Set this parameter to true if the normal method does not provide adequate results
Returns
No return value
Example
VBScript
Application("Demo").View("DemoView").Object("DemoObject").ReportText
'Set alternative method to true
Application("Demo").View("DemoView").Object("DemoObject").ReportText true
JavaScript
Application("Demo").View("DemoView").Object("DemoObject").ReportText();
// Set alternative method to true
Application("Demo").View("DemoView").Object("DemoObject").ReportText(true);
Documentation Categories
![](https://www.zaptest.com/wp-content/uploads/2022/02/1SCRIPT_STEP.jpg)
ZAPTEST
![](https://www.zaptest.com/wp-content/uploads/2022/02/FARM.jpg)
FARM
![](https://www.zaptest.com/wp-content/uploads/2022/02/LOAD.jpg)
Comment
Report object text