Ask a Question

Enabling/Disabling Text Recognition at run time

SOLVED
RodolfoDias
New Contributor

Enabling/Disabling Text Recognition at run time

I got a Question, I want to enable the text recognition for a specific window just for a certain moment on my test and then disable this window after I read it. Because there is many of that window on the system we use and i'm worried about execution time case I had to let it read every window.
There is a command to enable or disable the text recognition?

4 REPLIES 4
tristaanogre
Esteemed Contributor

Unfortunately, no.  Text recognition is something that is set up at design time of the project and, once the project run is started, it cannot be altered.  Think of it as a compiler directive when compiling an application.  They are settings and such that are built in to the executable that is compiled.  You can't change those in the EXE file itself, only in the development environment before the EXE is created.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

So it won't be a performance problem either, right?

I'm not sure about performance, to be honest.  In my use of Text Recognition, it doesn't really seem to impact performance.


Robert Martin
[Hall of Fame]
Please consider giving a Kudo if I write good stuff
----

Why automate?  I do automated testing because there's only so much a human being can do and remain healthy.  Sleep is a requirement.  So, while people sleep, automation that I create does what I've described above in order to make sure that nothing gets past the final defense of the testing group.
I love good food, good books, good friends, and good fun.

Mysterious Gremlin Master
Vegas Thrill Rider
Extensions available

Thank you so much for your replies, i'll give it a try

cancel
Showing results for 
Search instead for 
Did you mean: