Wait for page to reload before debug screenshot