Wait for the value of an attribute

Wait until the value of an elements attribute contains or equals a given value.