how can i do that ? I can use waitForElementWithPropertyValue and check for class to be empty but that is not a very scalable solution