#102: Lost contact to website impacting IF commands

I continue to have problems automating an unstable website. Now I’m having a problem with the IFs.

In the example below I have this code:

{
      "Command": "executeScript",
      "Target": "return (${LINK} == '#LNF');",
      "Value": "isElementPresent_4",
      "Description": ""
    },
    {
      "Command": "if",
      "Target": "${isElementPresent_4} == true",
      "Value": "",
      "Description": ""
    },

However, when the website crashes, it doesn’t get the reference it should for the IF, it shows #102: Lost contact to website and skips the IF, this is very bad because the code freezes right after.

Erro 1

Is there any provision for fixes to resolve these problems or alternatives?

This runs in the website. That could be the issue you are seeing. → Use executeScript_SANDBOX instead.