Made it  possible to filter views based on their class with waitForText()
Some refactoring of the waitForActivity methods