I am looking for a way to stop a web macro from fully executing in case certain things are not what they should be. I have a use case where I am injecting JS onto a page to verify a form has the correct data. Once it verifies, it checkmarks the rows that I need. The following Web Macro step submits the form. Thus, what I want to do is be able to stop the Web Macro if the injected script does not find any matches. Is there an alternative way to do this?
I suppose I could use my JS script to disable the page thus rendering the macro unable to do anything else, but that is not a very clean way to do it. Any ideas would be great.