14-08-23 06:03 PM
I have an intermittent problem that occurs in my automation. I loop through CSV data, fill in a form, etc. Each time at the beginning of the loop, it is possible the Win32 application I am using will display an error dialog. I have not figured out how to Spy the error or use application modeler.
What I am doing:
I'm not having luck finishing any of the images from my screenshot. One screenshot is just the OK button from the error message. At the time, no other OK buttons are visible.
I also have another screen shot that tries to find the entire error dialog within the screenshot.
I have tried using Utility Image Manipulation->Get Sub Image. It is not
I have also tried Utility Image Search->Find Image. It never finds anything unless I increase the tolerance to 7 or greater. It then matches every screen (so it does not work. It will match even when no error exists).
I have font smoothing disabled on the system. Is there anything else I can do? Or, perhaps there is a better way to detect this error.
Sometimes the error occurs within a few minutes of running, other times it might not occur until 20-30 minutes later. I think the Win32 application has performance problems causing the problem - but besides the error dialog, I do not know how to detect this issue.
15-08-23 02:43 PM
I was able to get past the issue. I used: Utility Image Manipulation->Get Sub Image. This works, but does take about 10 seconds.
I was not able to get the Utility Image Search->Find Image working - I suspect I am using it wrong and possibly not understanding its purpose.
There is probably a better way to capture this error message. I have not been able to use Application Modeler to spy it - the error is infrequent and I do not know what causes it.
15-08-23 06:14 PM
Hi Chris Rider,
Did you get chance to try region mode in Application modeller?