selectWindow tab=open state of indiscriminate stopping

Open a new tab and use the selectWindow tab=open command for the task.
However, when tab=open, it often freezes.
The attached photo shows the phenomenon of stopping when tab=open was repeated 300 times for testing.
11/300, 88/500, 41/500, 11/100
This is a very random phenomenon with information stopping at each loop.

This phenomenon also occurs in Chrome and Firefox, and no errors or logs are displayed.

Please let me know a solution or improvement. We really need this work.

Hello, thanks for the report. We confirmed the issue with the below test macro.

=> We will work on this issue. I will update this forum post once a fix is available.

{
  "Name": "wk",
  "CreationDate": "2024-6-10",
  "Commands": [
    {
      "Command": "store",
      "Target": "fast",
      "Value": "!replayspeed",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://ui.vision",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "tab=open",
      "Value": "https://webcamera.io/ko/",
      "Description": ""
    },
    {
      "Command": "assertElementPresent",
      "Target": "xpath=/html/body/div[2]/div[3]/div/div/h3",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "click",
      "Target": "xpath=/html/body/div[2]/div[3]/div/div[5]/h3",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "tab=close",
      "Value": "",
      "Description": ""
    }
  ]
}
1 Like

We debugged this. For some reason IPC gets inactive/stops working on this tab sometimes. The new version 9.2.6 helps with this. It has two changes:

  • The error happens less frequently

  • If the error happens, you get a good error message now instead of the IDE just stopping. You can then catch the error and e. g. reload the tab content.

Example macro:

{
  "Name": "issue_tab_stops",
  "CreationDate": "2024-6-18",
  "Commands": [
    {
      "Command": "store",
      "Target": "fast",
      "Value": "!replayspeed",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "300",
      "Value": "!timeout_pageload",
      "Description": ""
    },
    {
      "Command": "times",
      "Target": "10008",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "echo",
      "Target": "round: ${!times}",
      "Value": "blue",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!errorignore",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://google.com",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!statusOK",
      "Description": ""
    },
    {
      "Command": "selectWindow",
      "Target": "tab=open",
      "Value": "https://webcamera.io/ko/",
      "Description": ""
    },
    {
      "Command": "store",
      "Target": "false",
      "Value": "!errorignore",
      "Description": ""
    },
    {
      "Command": "if",
      "Target": "${!statusOK} == false",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "open",
      "Target": "https://google.com",
      "Value": "",
      "Description": "We need to load another website first. Pure refresh will not solve it."
    },
    {
      "Command": "open",
      "Target": "https://webcamera.io/ko/",
      "Value": "",
      "Description": "Reload page"
    },
    {
      "Command": "echo",
      "Target": "${!times} => Done with reload sequence",
      "Value": "green",
      "Description": "Needed to establish communication with the IDE again."
    },
    {
      "Command": "end",
      "Target": "",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "assertElementPresent",
      "Target": "xpath=/html/body/div[2]/div[3]/div/div/h3",
      "Value": "",
      "Description": "just to check that the page is loaded ok"
    },
    {
      "Command": "selectWindow",
      "Target": "tab=close",
      "Value": "",
      "Description": ""
    },
    {
      "Command": "end",
      "Target": "",
      "Value": "",
      "Description": ""
    }
  ]
}