0

Since two days my protractor tests stopped running because the webdriver-manager update command fails with the following error. enter image description here

EDIT The problem is in ...\AppData\Roaming\npm\node_modules\webdriver-manager\dist\lib\provider\chromedriver.js file.

In async updateBinary(version), on line 59, const versionObj = version_list_1.getVersion(versionList, osHelper(this.osType, this.osArch), formatVersion(version)); is null.

bokkie
  • 1,477
  • 4
  • 21
  • 40

1 Answers1

0

When you run webdriver-manager update the respective drivers are downloaded from a location.

enter image description here

When it does not know from where to download you will face this issue. You can see in the above image each driver is downloaded a specific URL.

Try uninstalling protractor and install it back again.Then try to run webdriver-manager update

Bharath Kumar S
  • 1,410
  • 2
  • 10
  • 29
  • I have done that, and still the same error. I will try to nuke everything and do it all from scratch. Still strange how this happened all of the sudden, after few years of running every night with no problems. – bokkie Mar 27 '19 at 10:25
  • Also, we have about 50 tests with about 250 specs in total. And from about 4 months, after a chrome update, they started freezing randomly. sometimes after 10 specs, sometimes after 100 specs. all that followed was failing. Downgrading chrome and installing an older version of webdriver-manager solved the issue. And now this... – bokkie Mar 27 '19 at 10:33
  • Use this solution to avoid webdriver-manager completely. https://stackoverflow.com/a/53358685/8903949 – Bharath Kumar S Mar 27 '19 at 10:35
  • This package is also really useful. https://www.npmjs.com/package/selenium-standalone . Install this package globally . then run "selenium-standalone install" to update to latest and "selenium-standalone start" to start the server – Bharath Kumar S Mar 27 '19 at 10:38
  • Both the alternatives worked well for me. Hope it helps for you also. – Bharath Kumar S Mar 27 '19 at 10:52