added callback to handle or modify .waitForPageToLoad() errors and added .exists() method