In the abstract, I'd still like to know the answer to the question i.e. is it possible or not?
Practically, for example, let's say I have a dialog that appears for some duration then disappears without user interaction. In an instrumented test, after triggering the dialog to appear, how do I wait till the dialog has disappeared before proceeding with the rest of the test?
Instrumented test asserts can tell you if something is no longer visible, but they have the undesirable side effect of also possibly failing the test.
So, I'm looking for something like an assert but without the side-effect.