I have several unattended macros that are triggered via task scheduler that start with chrome not already open and noticed a recent increase (over 50% of the time) getting the
No tab with id: xx error like shown below:
After a lot of testing I found out that the error doesn’t happen when chrome is already loaded or if my script loads chrome first, pauses for it to load, then starts UIVision and the macro.
If I remove the pause in the script the error comes back. I’m not sure why but a pause in the beginning of the macro itself doesn’t help, it has to be before UI.Vision is even called.
If anyone is getting this error with this specific scenario try the loading pause to see if it helps.
Maybe a pause needs to be hardcoded in UI.Vision before it tries to communicate with Chrome?