groupon / selenium-download

allow downloading of latest selenium standalone server and chromedriver
BSD 3-Clause "New" or "Revised" License
28 stars 25 forks source link

TypeError: Cannot read property 'Key' of undefined #51

Closed ghost closed 5 years ago

ghost commented 5 years ago

In the last few days, we've started seeing a failure in this utility when attempting to determine the current selenium version. The output logs are as follows:

[testium] grabbing selenium chromedriver 76.0.3809.126
[testium] Unable to determine latest version of selenium standalone server; using 3.9.1
TypeError: Cannot read property 'Key' of undefined
    at parseSelenium (/tmp/app/node_modules/selenium-download/lib/selenium/version.js:81:27)
    at onFullVersionData (/tmp/app/node_modules/selenium-download/lib/selenium/version.js:119:20)
    at onParsedXml (/tmp/app/node_modules/selenium-download/lib/selenium/version.js:93:12)
    at Parser.<anonymous> (/tmp/app/node_modules/xml2js/lib/parser.js:303:18)
    at emitOne (events.js:116:13)
    at Parser.emit (events.js:211:7)
    at SAXParser.onclosetag (/tmp/app/node_modules/xml2js/lib/parser.js:261:26)
    at emit (/tmp/app/node_modules/sax/lib/sax.js:624:35)
    at emitNode (/tmp/app/node_modules/sax/lib/sax.js:629:5)
    at closeTag (/tmp/app/node_modules/sax/lib/sax.js:889:7)
[testium] grabbing selenium standalone server 3.9.1

This then causes our tests to fail as the Selenium version and Chrome version aren't in sync.