I just ran another CSV file and forgot to search/replace the subdomain name - same thing happened. Swapped-out the old subdomain name for the new - working fine.
I’m guessing there’s some kind of disconnect happening between Kantu and the browser tab when a redirect occurs.
I am getting the same error.
My belief is this is because of a slow loading Web App.
Instead of timing out on a clickandwait, Kantu is proceeding to the step in the macro.
In my case it trying to click a check box.
I get one of three errors when the page is loading slowly.
Lost connection.
Could not establish connection
Element not found
I used to only get the “Element not found”, but I increased the Page timeout and added a pause after the clickandwait.
Error itself is random, as you can see in my log it triggers at least 3 different errors:
[error] Could not establish connection. Receiving end does not exist.
[error] Error #101: Kantu is not connected to a browser tab
[error] macro ‘any_random_macro’ timeout 120s (change the value in the settings if needed)
Error depends on what next action is coming when timeout happens.
How to reproduce.
Set a macro with several included cases (i have a testsuite with 6 macros in it)
each macro has page reloads and needs to wait elements to appear on page (i bet it happens when waiting is in charge)
in settings of Kantu set the limited time for macro run, that is definitely more than needed for macro to pass (i have 2 minutes limit while full suite goes within 1.5 minutes)
Run the suite, wait until it passes
immediately run another time the same suite, wait it to pass
Repeat several times to get different errors triggered in console when the timeout of 1-st run is over (than will 2-nd run timeout over, resulting in an error and so on)
I assume we have another hidden issue related: sometimes scripts are launched but not terminated. So sometimes when i get to some specific page, it gets clicked a submit button immediately, while it is not yet come to it by execution. I hope you will reproduce this problem too, while you will be testing it with steps above.
Please let me know if you reproduced this.
Thanks in advance.
I am not sure what happens underground the scripts, but peculiarities of this part of my macro are:
click triggers redirect to blank page
and then second domain is opened with page reload, where “wait…” should be in charge.
I would be happy if i helped at least to reproduce comething. If that is needed: I am ready to spend some time to try to reproduce on external sites.
The issue here is to recreate the problem, but we are working on finding a good test case. If anyone has a macro that we can run “here”, please post it in this thread.
A general workaround for any web page timing or connection issue with Selenium IDE commands is to use the RPA commands XClick (image) and XType (image) for this section of the test case. These commands work visually, and thus no communication with the browser is required.