Forum Discussion
GiorgiNiavadze
6 months agoOccasional Contributor
As I mentioned above, this function worked for a certain period of time in such a way that, in case of failure, it threw a warning instead of an error using the .CheckText() method. If the .CheckText() method could not find the desired text, it would throw a warning instead of an error itself.
rraghvani
Champion Level 3
6 months agoYour conditional if state is incorrect – you are checking the existence of your application. If the application does not exist, you output the following “Log.Warning(`${textToCheck} - NOT FOUND`)”.
You first need to verify that searchAreaObject exists, before passing the variable into OCR.Recognize() method
Secondly, you need to verify the returned value of recognizedText.CheckText() method.