use waitForUrl to check redirect
Merge pull request #6 from jdohuutin/wait-for-url

use waitForUrl to check redirect