Ditch the sleeps and use pageLoadTimeout instead.