fix unstable getText()

And 100ms is not too short. Usually one sleep cycle will be enough for JS to fill this block with text.