Refs #482: casper.viewport should wait after repaint

Since setting the viewport forces a redraw of the
rendering, in an asynchronous manner, it should wait a bit of time.
At least SlimerJS needs this delay to redraw its window.