Problem with testing is VNC opened or not using Find Element Step

Answered
0
0

Hi,

has anyone had this issue when looping Find Element step to find if an application is opened or not?

I’m trying to test if VNC is opened before continuing the process; entering the credentials and so on. Using a DoWhile loop I’m testing with FindElementStep.

Sometimes I’m getting the following error in the logs and the process ends in error:
“Error ocurred in step [“DoWhile”, “Loop Until VNC Opens”,”9350ccef-e332-2a3b-bf0d-cca35fd04b1e”]. Error: Robotiq.Steps.Common.ProcessLevelErrorHandlingException: One or more errors occurred. (s >= 0) (s >= 0) (s >= 0) (s >= 0) (s >= 0) —> System.AggregateException: One or more errors occurred. (s >= 0) (s >= 0) (s >= 0) (s >= 0) (s >= 0) —> OpenCvSharp.OpenCVException: s >= 0 at OpenCvSharp.NativeMethods.”

Any ideas?

Thanks

  • You must to post comments
Best Answer
0
0

Hello,

I’ve found the same issue happening occasionaly.

It seems to be happening because the process you’re trying to start (in your case VNC) is taking it’s time starting and/or the looping of FindElementSteps is too frequent.

What helped me is placing a pause between the Open Window Process Step and starting the loop with the Find Element Step. Also place a short pause into the loops iteration to stagger the Find Element Step executions.

Hope this helps!

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.