sleep is unreliable and a waste of time. use waitForText instead.