Made it  possible to filter views based on their class with waitForText()