Wait Attribute Until NOT CONTAINING

Hi all, what would you think about having a Wait Attribute, but with NOT and CONTAINS supported? (like, “aastate” NOT containing “is inactive”).

Lately I’ve been involved in a project where we used so much “Wait Attribute” activity; such as in wait until Save Button’s active then click the Save Button. We did it by retrieving the element’s attribute, check it if it doesn’t contains the keyword, and put it inside a While, … and added Stopwatch to avoid endless loop. It would be easier we have it as an Activity.

There might be not many environment need this, but i think it would be helpful.

Similar but a bit different with: Logical operators (AND &&, OR ||, NOT !) in selectors

Hi,
Thank you for your suggestion. I added it to our internal ideas tracker for our team to consider.

Hi @whyyouandi

We now offer Regex support for selectors:

It could be a valid workaround for now :slight_smile:
For example, this regex matches anything but strings that does not contain ‘is active’ :
^((?!is inactive).)*$

2 Likes

That’s superb! Will check on it when I have access to 19.10. Thank your for the update.