[error] No Tab with id

Hello,

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:

  1. Navigate to the Webpage
  2. Press “Login” button in the middle of the page
  3. Use “selectWindow” to focus on the Pop-up
  4. 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?

Thanks,
Shaughn

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.

No tab with id: 2653.

  1. Page opens up in tab0.
  2. User clicks a link and this link opens up in new tab tab1.
  3. on tab1 user clicks on a link which opens up in new tab, i.e tab2.
  4. now on tab2 user closes all other open tabs.
  5. now only tab2 is only in the browser.
  6. user opens up some url and it is opens up in new tab.
  7. while doing select window it says “No tab with id: 2653.”

image

I did the refresh and pause but that did not work for me.
pl. guide me.

I can not share the script as it is in private area.

May I request you again admin.

image

Has anyone else fixed this issue?

Same issue. who can fix?

@admin, i encountered same issue again today. is there any permanent solution here ?

@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

In command line use this option

&continueInLastUsedTab=0

(default is 1)

This solve partially the problem

Hi, could you more specific on this option ? Not sure what to do with it ?

Thanks a lot !