Returns the text on the object as recognized by the OCR mechanism.
Syntax
Object.GetOcrAreaText(language,color)
Parameters
Return Value
A string containing the text displayed on the
screen as recognized by the OCR mechanism.
Remarks
Returns the text on the object as recognized by the OCR mechanism.
-
In order to use the GetOcrText method you need to have the
Microsoft Office document imaging component installed. See the
Installation guide for more details.
-
We don't support OCR for Run on device and Web
elements.
Examples
QTP Example:
MobileDevice("device").GetOcrAreaText("English","false")