Dominic,
Thanks for submitting this request. You can try the following steps without the need for a change to the compare method:
- Use Get_web_value command with Type of Boolean and the XPath/locator of the element you are looking to check its existence. This will return "true" or "false" based on whether the element exists or not.
- Now, you can use the variable resulting from the above command in your IF statement for the purpose mentioned above.
Here is how it would look like:
Get_web_value HALT existence LOCATOR application_page_type_alias BOOLEAN false
If HALT TEXT @existence = true
...
Else HALT
...
End_If HALT