make casper test wait for selector before verifying url