Kantu for Firefox

I just switched to Kantu from iMacros. But sadly it doesn’t work
smoothly with the container addon from firefox:

The problem is given if you have multiple container tabs open for example 5.

I do use this code:

{     "Command": "selectWindow",
      "Target": "tab=${!csvReadLineNumber}",
      "Value": ""
    }

It just opens the tab with the same number as the Line from the csv File
it is reading. This does work but only if you have opened all 5 tabs
already once manually. Otherwise you will end up with
“[error] until: ipc by tab id expired!”

at the 2nd or 3th tab. Depending on how many you have already opened once since you started firefox.

To reproduce this do following:

  1. Firefox Settings: enable “reopen last session” if you have firefox
    open just go to: about:preferences and the first option should have it
  2. Install the container addon:
    https://addons.mozilla.org/de/firefox/addon/multi-account-containers/
  3. Create 5 unique Containers inside the addon
  4. Open 5 Tabs inside an unique container
  5. Go to 1st Tab
  6. Close Firefox
  7. Start Firefox
  8. Run a script that is trying to cycle trough all 10 tabs
  9. Get “[error] until: ipc by tab id expired!”

This problem doesn’t exist with iMacros but I can’t use my csv files in the way I can with Kantu. It wouldn’t be problematic if I just have “reopen” the 10 Tabs manually but I would have to do this for more than 200 unique container tabs and that would be too time consuming.

To clear things up. Example picture of unique container tabs open:

Tabs are already open and Kantu should cycle trough them depending on the linenumber it has read from the csv file. This will sadly result in the error mentioned above.

I hope someone does have a Idea how to make Kantu work with the Container Addon for Firefox. In the way I intend to do.

I think that is the problem, not the container addon. I am not sure about iMacros, but in Kantu you have to first open the tabs with a URL, and then you can switch between them if needed.

This macro works for me:

 {
  "Name": "tabx1",
  "CreationDate": "2019-2-27",
  "Commands": [
    {
      "Command": "open",
      "Target": "https://a9t9.com/",
      "Value": ""
    },
    {
      "Command": "selectWindow",
      "Target": "tab=open",
      "Value": "https://cnn.com/"
    },
    {
      "Command": "selectWindow",
      "Target": "tab=open",
      "Value": "https://bbc.com/"
    },
    {
      "Command": "selectWindow",
      "Target": "tab=open",
      "Value": "https://google.com/"
    },
    {
      "Command": "selectWindow",
      "Target": "tab=open",
      "Value": "https://bing.com/"
    },
    {
      "Command": "selectWindow",
      "Target": "tab=0",
      "Value": ""
    },
    {
      "Command": "selectWindow",
      "Target": "tab=1",
      "Value": ""
    },
    {
      "Command": "selectWindow",
      "Target": "tab=2",
      "Value": ""
    }
  ]
}

Surely this will work but won’t be able to create unique container tabs or open tabs that are already open. As you mentioned yourself. Since I still have my tabs “open” from last time when I start firefox I just want to go to the tabs that are already open.

A command that would allow to go to the next tab would already be enough for myself.

In this specific case iMacros works better and doesn’t have this problem. It would be awesome if Kantu will be able to handle this problem or specific task as well.