Changing UFT GUI text recognition mode at run time

  • Questions
  • 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: 338, Answers: 20)
Asked on January 29, 2019 5:09 pm
7 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: 748)
Answered on January 29, 2019 5:17 pm
This is a great help, thanks!!
( at January 29, 2019 5:18 pm)