diff --git a/lib/driverProviders/direct.ts b/lib/driverProviders/direct.ts index 20af0cf38..5710b7da4 100644 --- a/lib/driverProviders/direct.ts +++ b/lib/driverProviders/direct.ts @@ -69,7 +69,10 @@ export class Direct extends DriverProvider { let chromeDriverFile = this.config_.chromeDriver || defaultChromeDriverPath; if (!fs.existsSync(chromeDriverFile)) { - throw new BrowserError(logger, 'Could not find chromedriver at ' + chromeDriverFile); + throw new BrowserError( + logger, + 'Could not find chromedriver at ' + chromeDriverFile + + '. Run \'webdriver-manager update\' to download binaries.'); } let service = new ChromeServiceBuilder(chromeDriverFile).build(); diff --git a/lib/driverProviders/local.ts b/lib/driverProviders/local.ts index 1991ad75b..3eff1e319 100644 --- a/lib/driverProviders/local.ts +++ b/lib/driverProviders/local.ts @@ -45,9 +45,8 @@ export class Local extends DriverProvider { if (!fs.existsSync(this.config_.seleniumServerJar)) { throw new BrowserError( logger, - 'No selenium server jar found at the specified ' + - 'location (' + this.config_.seleniumServerJar + - '). Check that the version number is up to date.'); + 'No selenium server jar found at ' + this.config_.seleniumServerJar + + '. Run \'webdriver-manager update\' to download binaries.'); } if (this.config_.capabilities.browserName === 'chrome') { if (!this.config_.chromeDriver) { @@ -64,7 +63,9 @@ export class Local extends DriverProvider { this.config_.chromeDriver += '.exe'; } else { throw new BrowserError( - logger, 'Could not find chromedriver at ' + this.config_.chromeDriver); + logger, + 'Could not find chromedriver at ' + this.config_.chromeDriver + + '. Run \'webdriver-manager update\' to download binaries.');); } } }