Forum Discussion
Can you provide the error details you are getting? The error message can tell a lot.
- GiorgiNiavadze3 months agoOccasional Contributor
this screenshots all about code with arguments and pass/failed results
- GiorgiNiavadze3 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.
- rraghvani3 months ago
Champion Level 3
Your 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.
- GiorgiNiavadze3 months agoOccasional Contributor
because, it is not important to check existence of application but, can you provide correct working function according to my function ?