ReferenceError: OCR is not defined
// Create an OCR object
OCRObj = OCR.CreateObject(Rect);
Test Complete Support Case Reference No. 00316730
After apply below patch still getting error below error when trying to run above code in test complete
JavaScript runtime error. ReferenceError: OCR is not defined Error location: Unit: "IRD_Automation\IRD_Automation\Script\Unit1" Line: 13 Column: 12.
ReferenceError: OCR is not defined
Apply the following patch to return the old OCR mechanism:
Patch Installation Instructions for TestComplete 12.60:
1. Download the patch archive (TestComplete_12_60_CC_15472.zip) using the following link:
https://s3.amazonaws.com/webtocasefiles.smartbear/Patches/TestComplete/12/12.60/CC-15472/TestComplete_12_60_CC_15472.zip?AWSAccessKeyId=AKIAI73W2YWGYHFS46XQ&Expires=1623937136&Signature=unkjUCy%2FptX3c10zI44ZSekIMEw%3D
2. After you have downloaded the archive, unzip the patch files to the appropriate locations (back up the existing files before doing this, just in case):
\Bin\Extensions\BMP2TextServer.dll => %programfiles(x86)%\SmartBear\TestComplete 12\Bin\Extensions\BMP2TextServer.dll
\Bin\Extensions\tcOCR.pls => %programfiles(x86)%\SmartBear\TestComplete 12\Bin\Extensions\tcOCR.pls
\x64\Bin\Extensions\BMP2TextServer.dll => %programfiles(x86)%\SmartBear\TestComplete 12\x64\Bin\Extensions\BMP2TextServer.dll
\x64\Bin\Extensions\tcOCR.pls => %programfiles(x86)%\SmartBear\TestComplete 12\x64\Bin\Extensions\tcOCR.pls