/** * Sets up a chrome driver we can use to fetch a webpage and test * that is the object to add the driver to */ function setupChrome(that) { chrome.setDefaultService( new chrome.ServiceBuilder(chromedriver.path).build() ); that.driver = new seleniumWebdriver.Builder() .withCapabilities(seleniumWebdriver.Capabilities.chrome()) .build(); }