Changing UFT GUI text recognition mode at run time
Question ID: 108838
1
0

We need to change the GUI text recognition mode (single text block mode or multiple text block mode) at run time, but I haven’t found a way to do it. Does anyone know?

Marked as spam
Posted by (Questions: 386, Answers: 64)
Asked on January 29, 2019 5:09 pm
162 views
Answers (1)
1
Private answer

You'd have to use AOM script to do that. For example:

Set qtApp = CreateObject(''QuickTest.Application'')
qtApp.Options.TextRecognitionBlockType = ''Single''

Also, if you need to change the ''OCR Mechanism'' (Abby or Tesseract), you can add this code:

qtApp.Options.TextRecognitionOcrMechanism() = ''Tesseract''
or

qtApp.Options.TextRecognitionOcrMechanism() = ''Abby''

and you can even add languages, like this:

qtApp.Options.AbbyOcrLanguages() = ''English,Spanish''

Marked as spam
Posted by (Questions: 16, Answers: 807)
Answered on January 29, 2019 5:17 pm
0
This is a great help, thanks!!
( at January 29, 2019 5:18 pm)
EyeOnTesting

Welcome back to "EyeOnTesting" brought to you by Orasi Software, Inc.

X
Scroll to Top