Added method: wait for attribute value