I’ve designed a macro with a “Refresh” command, preceded and followed by “Pause” commands to allow sufficient time for loops to execute smoothly. However, the “Refresh” command occasionally fails with the error message: “Error #210: ‘refresh’ failed. No page load event detected after 10s (!TIMEOUT_WAIT). Error details: Error #220: Still same ipc secret.” This issue intermittently occurs.
When you use the REFRESH command or selectWindow | TAB=OPEN it happens that ui vision loses control of the tab it is working on, generating errors, therefore a good automation should avoid these commands because it can happen that during the loading of the tab ui vision loses control and reports errors.
Yes, indeed, ui.vision loses control when you open and close tabs automatically. At first it worked fine until it reaches a point where it stops due to internally generated errors.
I recommend that instead of the REFRESH command you use the open command (on the same tab) it seems more stable and ui vision rarely loses control of the tab using the OPEN command. If you use the REFRESH command set a !TIMEOUT_PAGELOAD with a high value of 120-150 seconds
Thanks for your solution. Actually, I had set the REFRESH command with a high value of 140 seconds. It worked successfully for the first 3 loops and as it entered 4th loop, it dropped the connection and macros got stuck there only.
Therefore, can you provide me the code for OPEN command to REFRESH the page?
If you still notice errors after the OPEN command, add PAUSE with several seconds, do some tests, the important thing is that when the page is slow to load that ui vision does not execute commands otherwise it goes into error, ui vision must execute the commands after the page is fully loaded