Switched from PhantomJS to webdriver