I want to have a test pause and wait for an element to appear on screen before proceeding.
I don\'t see a good way to create an expectation for this and wait using
It doesn't take an already existing element. You just need to define the following predicate:
let exists = NSPredicate(format: "exists = 1")
Then just use this predicate in your expectation. Then of course wait on your expectation.