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": ""
}
]
}