Find OCR Text - Timeout Not Happening

Hi ,
I am trying to find a specific string exist in the screen. When I use “Find OCR Text”, if text found it returns the element. If not it goes for infinite wait. Please check the Properties below.
Please suggest. I am using UiPath 2017

image

1 Like

As the properties set by you it will be automatically timeout in 20 secs. Can you make the waitforready property as complete and make continue on error to false. Then you would be able to find out.

1 Like

Buddy @Deeipauk

Usually when a activity fails to find a element within its 30 sec of default timeout, it will check immediately with its properties like Timeout set with explicit value and the continue on error…
If the default timout is more than the usual time of 30 seconds it will wait till then gets fail…or if it is less than default value of 30 seconds, it will wait only till that time like how you have given now…thats fine and it has no problem…
So the very next is continue on error, usually it is set to false if this activity is not used in try catch block and this will fail immediately after the timeout set
else
will be in true value if it is used inside the try catch block…and if fails even will be catched in catch block …
So it implies clearly that the issue in yours is with continue on error been set to true…but not being inside a try catch block…and thus waiting for a long…
Simple buddy… remove that and change to default value as false…
Thats all buddy @Deeipauk you are done
Cheers…keep going…

1 Like

Did that work buddy @Deeipauk

Thanks Palani for your detailed response :slight_smile:

Could be the reason; “ContinueOnError” set to true is reason for unlimited wait and it was not inside a try-catch block. Now I put in try catch and “ContinueOnError” as false(cleared the field) and what I intended to do when error I have added in the exception part, then no problems.

1 Like

Thanks Dev,

I removed the continue on error and added it in try-catch. it worked

1 Like

Please mark it as solution if you’re happy.

Regards,
Karthikeyan Ramamoorthy

1 Like

Chees buddy keep going
@Deeipauk
@devKarthikeyanR

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.