I’m going through a workflow right now where a pop-up appears, and the user has to press “Allow” in order to login to the page.
The steps in the macro are as follows:
Navigate to the Webpage
Press “Login” button in the middle of the page
Use “selectWindow” to focus on the Pop-up
Enter credentials and press “Allow”
Any subsequent step after the pop-up closes (which then logs in the user), does not work. I receive an error stating:
[error] No tab with id: 1585.
Seems like since the user was previously focusing on pop-up window, it is no longer able to complete any other actions since the window is no longer available.
I tried using “selectWindow” again to focus back in the main window/tab, but that also returns the same error.
Has anyone else ran into this issue and figured a way to get around this in Kantu?
As a test and potential workaround, if you add an Open command after the tab has closed (to reload the main page), or maybe a Refresh, does this fix it?
FYI, I had roughly the same error (not sure it was exactly 1585, but something similar) in a different context. I was running a bunch of macros (via the “Export as HTML plus autorun” method) from a script. I realized that I was triggering the next one prematurely, so that it would be concurrent with the previous. Once I resolved(*) that, the “[error] No tab with id: 1585” problem went away. FYI & FWIW.
(*) In case you are interested, I am triggering the driving script to launch the “next” macros by having the “previous” macro save a csv file called “termination” when it is done. The driving script waits for this file to appear before launching the next macro. However, because this file gets created before Kantu completes running the “previous” macro (showing the “macro completed” or whatever notification). I guess it needs to do some cleanup before the next one starts. I “fixed” this problem just with a short delay in the driving script, which works but is not very satisfying. I’d be interested in any suggestions about the “right” way to achieve this. Thanks.
@admin Any luck with this? I am getting the same error “[error] No tab with id: 3” and the number 3 changes to 2, 1 or even 75 depending on the day so it makes it impossible to schedule the Macro for an everyday run. Would appreciate any help on how to workaround this bug please! Thanks