waitForUrlChange now supports regexp (and replaces wait for redirect)