This sounds like some kind of timing issue inside the Kantu launch code. We will try to recreate this.
…although the other day it failed several times,
As a workaround, you can check the macro status and relaunch Kantu if needed. For example script code, please see the run a macro “forever” powershell script.
I considered your suggested workaround yesterday but I’m not sure it’s the optimal solution for my use-case (I’m reading from a csv file and writing to another).
Anyway, if it helps further debugging, some more info…
When the Kantu window opens, multiple messages appear, saying:
“can only run testsuites when it’s not recording or playing”
There must be around 10 of these messages which eventually disappear.
Another issue that may be related (or not - in which case I’m happy to open another post):
My Kantu script opens each URL in a new tab, where it does its business before closing it, and so on.
Sometimes, multiple tabs open with the same page, slowing the script somewhat. At its worst, I’ve seen 8 tabs.
First time the macro open 1 tab (correct), after i closed firefox, and reopen firefox after some minutes, I run the same macro and this time opend 4 tabs with the same url (wrong).
I never used loop or others commands.
Sometimes give to the error “Error #101: Kantu is not connected to a browser tab”
I use firefox 66 with Windows 7 and Xmodules free installed.
I hope you can quickly correct these errors that make automation difficult…
Launched from commandline, using attributes direct=1&closeKantu=1&closeBrowser=1&continueInLastUsedTab=1&savelog=eod_log.txt
When executed from UI, macro runs correctly. From shell script it opens 7 chrome instances with 1 being the site and the other six are running UI.vision Kantu
Using macro to login to target site and change to a specific page, and then download several files. When run form UI, all files are downloaded. When run from shell script, macro dies before completion with error: Could not establish connection. Receiving end does not exist.
Macro has 11 lines. Only two of the Kantu sessions appears to have loaded the macro and only one displays the log, although it appears that multiple sessions are writing to the log
Can you please post the shell script that you are using?
And what version of Ubuntu are you using?
Is it the same issue with Chrome and Firefox?
…
FYI: You use &closeKantu=1&closeBrowser=1&continueInLastUsedTab=1 but there is a problem with that: continueInLastUsedTab=1 will only work if you do not close the browser (closeBrowser=0) before , as otherwise Chrome/Firefox are closed and there is no tab left to continue in
To clarify this:
If you make 5 calls:
&closeBrowser=0&continueInLastUsedTab=1 - first macro runs
&closeBrowser=0&continueInLastUsedTab=1 - second macro continues in same tab
&closeBrowser=1&continueInLastUsedTab=1 - third macro continues in same tab, but once this macro is complete, the browser terminates.
closeBrowser=1&continueInLastUsedTab=1 - a new browser is launched, thus no previous tab to continue in.
&closeBrowser=1&continueInLastUsedTab=1 - again new browser is launched, thus no previous tab to continue in
Attempted to test in FF and my macro is no longer accessible… so that’s fun… All sorts of issues with file/saving which I’ll attempt to log in separate issues
I rebuilt the macro for FF and the same thing happens (only worse) - a bunch of FF windows open up and the Macro never seems to start. At least with Chrome the macro attempted to run.
Hello I had this problem with Kantu For Windows and Firefox 66, after it was never solved (I had also inserted photos in the forum but the problem has never been solved), I changed browser and now use firefox ESR 60 and assign more memory to the operating system , now the problem is solved. I noticed that firefox in some moments of overload can open more windows (it happened to me also by clicking a link).