Wait for page to load

Signed-off-by: Michal Čihař <michal@cihar.com>