Earlier versions of TestComplete (prior to version 12.60) used the built-in optical character recognition library. In version 12.60, it was removed from TestComplete and has been replaced with a new optical character recognition engine featuring Google Vision API.
If you have tests that use the deprecated optical character recognition library, you can do one of the following:
-
Modify your tests to use the new OCR feature (recommended).
– or –
-
Continue using the deprecated OCR library (not recommended). To learn how to do that, please contact our Customer Care team.
Modify your tests to use new OCR (recommended)
-
If you do not use source control, we recommend that you make a backup copy of your project.
If you use source control, we recommend that you create a new branch in your repository for your project.
-
Open your test project in TestComplete.
-
Update your tests to use the new optical character recognition engine using the recommendations below:
Task Legacy OCR New OCR Recognizing text in an on-screen object OCR.CreateObjectOCR.RecognizeGetting all the text within the specified onscreen object OCR.CreateObject.GetTextOCR.Recognize.FullTextGetting a region that contains the specified text OCR.CreateObject.GetTextOCR.Recognize.BlockorOCR.Recognize.BlockByTextGetting the coordinates of the rectangle that contains the specified text OCR.CreateObject.FindRectByText.Found…propertiesProperties of the OCR.Recognize.Block.BoundsorOCR.Recognize.BlockByText.BoundsobjectsSimulating user actions on an area containing the specified text Calculating coordinates of the rectangle that contains the needed text and simulating coordinate-based actions in that rectangle Methods of the OCR.Recognize.BlockorOCR.Recognize.BlockByTextobjectsSpecifying recognition options OCR.CreateObject.CreateOptionsThe recognition service will detect your text language automatically. -
Save the changes to your project.
