fix unstable getText()

100 ms is too short a time.
TimeUnit.SECONDS.sleep is slightly more readable.