As an example I have an automation that simply takes rows from a table on a web page and uses their data to process updates in another system.
One of the things I need to do is make sure for the request on the web page that a certain element does NOT exist. If it does exist then we have to reject the request.
Using Check App State works, but because the web page can be slow sometimes we have to use a 30 second timeout. Couple that with the fact that the element usually won’t exist, and it’s a huge time waster sitting for 30 seconds for every request.
So what’s a better way to check if something doesn’t exist on a page? Maybe we need an “Element Does Not Exist” Activity to complement “Element Exists…”
Yeah I was hoping for a more tidy solution but that may be the way we have to go, with an extra step to check for something that will exist before checking for the thing that usually won’t.
You can try using Pick activity and add 2 Pick branches. In the first branch’s trigger scope, put element exist activity for the one that might not exist. The other branch, the one that always exists. It will always pick the first branch if both elements are exist or not (thus, beware if both elements are not exist, an exception handling need to be added).