You should be able to do this with the Element Exists activity, targeted at an element unique to the message window. Unfortunately I cannot help you further unless you can describe your workflow in more detail, for example with screenshots and/or an example excel sheet with this behaviour. For now this is what I understand/assume: you use Element Exists, this stores a result in a Boolean variable, which you then use in the If condition, only the condition is True where you expected it to be False.
I have few questions here regarding “Element Exists”
Does it wait for the popup(element) to appear or does it check immediately after the previous activity and returns false incase the element is not visible.
In my case I’m checking for a popup in SAP and holding the result in a boolean variable. In the next step I’m using an “if” condition and if it is true …I’m clicking on the “Allow” button and if it is false "I’m putting “delay” activity
But every time the control is going to the “Then” part and the delay activity is getting closed.
And the control is moving to the next activity.
Is this wrong way of using “Element Exists”?