added Casper#waitForAlert()