Ignore error feature

Hi, trying to use “!errorignore” command but it still gives a error regardless
not sure if this is the proper way

{
  "Name": "qq",
  "CreationDate": "2024-3-1",
  "Commands": [
    {
      "Command": "storeText",
      "Target": "xpath=//*[@id=\"main\"]/div/div/div/div/div[2]/div/div[3]/div/div/div/div/div[2]/span",
      "Value": "text",
      "Description": "Attempt to store the text (ignore errors)"
    },
    {
      "Command": "store",
      "Target": "true",
      "Value": "!errorignore",
      "Description": "Ignore errors and continue execution"
    },
    {
      "Command": "store",
      "Target": "${text}",
      "Value": "!csvLine",
      "Description": "Store the text to CSV line"
    },
    {
      "Command": "if_v2",
      "Target": "${!statusOK}",
      "Value": "",
      "Description": "Check if the command executed successfully"
    },
    {
      "Command": "else",
      "Target": "",
      "Value": "",
      "Description": "If an error occurred, store 'no results'"
    },
    {
      "Command": "store",
      "Target": "no results",
      "Value": "text",
      "Description": "Store 'no results' to CSV line"
    },
    {
      "Command": "end",
      "Target": "",
      "Value": "",
      "Description": "End if condition"
    },
    {
      "Command": "csvSave",
      "Target": "QTP",
      "Value": "",
      "Description": "Save the CSV"
    }
  ]
}

the software stops with error:

[error][ignored]

Line 1: timeout reached when looking for element ‘xpath=//*[@id=“main”]/div/div/div/div/div[2]/div/div[3]/div/div/div/div/div[2]/span’

Using web extension. Firefox

Do you see the same issue in Chrome?

Have not tried on chrome yet, but isn’t chrome known to be more buggy?

will probably try today

but isn’t chrome known to be more buggy?

No :slight_smile:

1 Like

just gave a try and first 5 minute in and came across another pause error Although " store true !errorignore" is on

* [Line 13]E351: macro 'qt' timeout 500s (change the value in the settings if needed)

* [info]

Executing: | pause | 400000 | |

* [error]

[Line 13] E351: macro 'qt' timeout 500s (change the value in the settings if needed)

* [info]

Macro failed (Runtime 500.06s)

and what exist exactly on line 13 is:
[info] Executing: | pause | 400000 | |

and this is also related to this error: