Use always insted of done in the capturePage