Using node.js to run multiple macros one after another reusing the same browser window: file:///${autorunHtmlPath}?direct=1&storage=xfile&closeRPA=0&closeBrowser=0&nodisplay=1¯o=${macro}&savelog=${logFile}
However, since the upgrade to 8.1.1 whenever I run multiple macros ui.vision is throwing [error] No tab with id: .... The first macro will run without issue but as soon as the second macro starts I immediately get that error. One possible workaround is setting the continueInLastUsedTab=0 flag when loading the macro however this has to be combined with rewriting every one of my macros to close the current tab (selectWindow|TAB=CLOSE) in order to reattach to the previously active tab. Has anyone else run into this issue and come up with a better solution?
#180 is fixed, but there is a regression bug (as the user reported). The “tab id” shows if the browser is already open. We will fix this asap, should be easy.
I was finally able to test this with ui.vision 8.1.3 and the update did not fix the issue for me. As far as I can tell the update now completely ignores the continueInLastUsedTab parameter.
With 8.0.1, when I did not pass in a continueInLastUsedTab parameter (default: 1) and ran multiple macros back-to-back each subsequent macro would launch in a new tab and then immediately close that tab restoring the previously used tab and continue executing.
With 8.1.3, when I do not pass in a continueInLastUsedTab parameter it appears to have the exact same behavior as continueInLastUsedTab=0, the new tab is opened on subsequent macro runs and is never closed. I also tried explicitly setting continueInLastUsedTab=1 and experienced the exact same behavior, subsequent macro runs open a new tab and never close it.