Is there a way to, say, wait for text to appear on the screen without taking screenshots and waiting 100 milliseconds?