Error #101: Kantu is not connected to a browser tab

I encounter the same problem on this thread [error] No Tab with id - UI.Vision RPA Software Forum | Discuss RPA Automation, Selenium IDE and OCR API Text Recognition

  1. Navigate to the Webpage A
  2. Press “Search” Button
  3. Use “selectWindow” to focus on the Pop-up to search the result, and click on the result and pop up will close
  4. Navigate Webpage A again and continue (Failed)

When my pop up browser is closed, kantu not able to select the main webpage even i use selectWindow.

Error Message
Error #101: Kantu is not connected to a browser tab

Can anyone help on this ? i cant refresh the page or reload since save button is at the main webpage.

Do you have a link to the website?

Hi Ulrich,

I do not have link to show this is my backend website.
This is my last part to get the thing works, im stuck here hope you guys can help. Thanks

Owen

A link to a website or, for internal websites, a screencast would be very helpful for us.

I got today as well.

[error]

Error #101: Kantu is not connected to a browser tab

  • Error #101: Kantu is not connected to a browser tab

I see the same error daily :frowning: its a pain :frowning:

1 Like

Is there a macro that I could use to recreate the error?

I get the error only if I manually close tabs by mistake, so that there is no active tab for Kantu to run on.

Hi there, basically I have two chrome browsers open – I think it gets confused from time to time – really frustrating

only way to fix it is to close one browser window :frowning: :frowning:

must be some better implementation for this for ppl with dual screens

This is an interesting info, thanks. We will look into this.

If this is indeed the cause of the issue, then there is a good workaround: Use different Chrome profiles. In addition, using different user profiles in Chrome allows you to run several Kantu macros at the same time (one in each profile).

Hello!

I have a same problem. I use Mozilla, only one browser at one time and only one tab. Simple is the best.
The situation is:

  1. I try to clik to a button, which is sometimes not active.
  2. I used !errorignore before and labeled the prev. line of the code ‘_KLIKK’ (in case of error, the code have to start again from here)
  3. After the ClikAndWait with timedout gets an error, but the Gotoif command not works, becouse it can’t find the tab.

Here is the log.

  • [info]
    Executing: | waitForPageToLoad | 3000 | |
  • [info]
    Executing: | label | _KLIKK | |
  • [info]
    Executing: | clickAndWait | id=BUTTON1 | |
  • [error][ignored]
    ‘clickAndWait’ failed. No page load event detected after 10 seconds. Try ‘click’ instead.
  • [info]
    Executing: | gotoIf | !${!statusOK} | _KLIKK |
  • [error][ignored]
    Error #101: Kantu is not connected to a browser tab
  • [info]
    Executing: | clickAndWait | id=BUTTON2 | |
  • [error][ignored]
    Error #101: Kantu is not connected to a browser tab
  • [info]
    Executing: | waitForPageToLoad | 3000 | |
  • [error][ignored]
    Error #101: Kantu is not connected to a browser tab

For handle this error, i have try to put a “SelectWindow | Tab=0” before the Gotoif line, but it not helped, the result was the same.

Hi

I use Kantu from 2 days and i find kantu more powerful and functional.

Your problem is showed when you start a macro from internal page of firefox like about:blank of firefox or from about:config or firefox and similar pages.

You must start macro always form a website already loaded in the tab.

Have a nice day

The script opens a new browser tab with a website url. I think the problem is not the internal page.

Hi @Mora

Sometimes this bug showed to me too, to solve i open a tab with a websites and restart the marcro.

Sometimes this bug showed but do not know the cause.

Have a nice day

1 Like

Hi @admin @TechSupport

There are news about this bug ?

Does this bug often occur when the final resolution is expected ?

Thanks

Today I have faced this problem for running Kantu overnight.
In the morning I’ve seen multiple errors “Kantu is not connected to a browser tab”.
I tried restart my macros and every time I received “xFile is not installed yet”.
All errors were gone upon full restart of the Chrome.

Hi @commensal

When kantu show “Kantu is not connected to a browser tab” usually in my case open a new tab and try to work in another tab (i never user tab=open) but after some time fail to work.

I don’t understand why kantu try to open new tab (i do not write this in macro) and work in new tab when show “Kantu is not connected to a browser tab” i think that kantu loose the tab numbers and can not control the tabs and open another tab but can not continue the work.

Have a nice day

I managed to fool this error by opening a tab with an address like google.com and then open the tabs that i needed and macros worked.

Any update to this error? We see this same error daily.

@wrightmssc When do you see this issue? Do you see it when there is a title displayed in UI Vision? Then it should not happen.

bbc

I have written a script for a customer. So I am not in front of the screen when it errors.
I have the script designed to save the log file on error so that I can debug.

They are running the script against a Web Application. I believe this error occurs when the Web app is running extremely slow. I started with a ClickandWait followed by a type command.
I added a Pause after the ClickandWait and before the type. That seems to lesson the error. But we still get it.