Errors ignored, cannot change this

With this macro, I should see an error which stops execution, but the macro continues:

  "Name": "TestMain",
  "CreationDate": "2022-2-21",
  "Commands": [
      "Command": "storeText",
      "Target": "id=PatEPatientName",
      "Value": "Pt2",
      "Description": ""
      "Command": "",
      "Target": "",
      "Value": "",
      "Description": ""

This is the log output:

  • [status]

Playing macro TestMain

  • [info]

Executing: | storeText | id=PatEPatientName | Pt2 |

  • [error][ignored]

Line 1: timeout reached when looking for element ‘id=PatEPatientName’

  • [info]

Macro completed (Runtime 10.44s)

How do I stop this behaviour? I tried store | false | !ErrorIgnore - no change. It still ignores the error

storeText is designed for web scraping, so it ignores errors. Because with web scraping it often happens that a certain information is missing on the page. So if the locator is not found, no error is trigged. Instead, the text #LNF is stored in the variable.#LNF” stands for “Locator not found”.

What you can do is:

(1) Check !statusOK value. It will be false after the error. Or check the extracted value for “#LNF”.

(2) Or: Check that the element exists with assert Element Present