Closed rober710 closed 6 years ago
I'm using this script to download Selenium binaries in my project:
const selenium = require('selenium-download'); const path = require('path'); selenium.ensure(path.join(__dirname, 'bin'), function (err) { if (err) { console.error(err.stack); process.exit(0); } });
However, it is downloading the Selenium standalone jar version 3.3.0 although version 3.4.0 is available in the repository:
[testium] grabbing selenium chromedriver 2.30 [testium] grabbing selenium standalone server 3.3.0
I checked the URL the script is getting the version information, and the latest version is the second to last CommonPrefixes element:
<CommonPrefixes> <Prefix>3.3/</Prefix> </CommonPrefixes> <CommonPrefixes> <Prefix>3.4/</Prefix> </CommonPrefixes> <CommonPrefixes> <Prefix>icons/</Prefix> </CommonPrefixes>
Why in this commit you get the previous one?
var prefix = prefixes[prefixes.length - 3];
When I change the code to prefixes.length - 2 it downloads the correct version. Right now, the latest Gekodriver (0.17.0) is not working with the "latest" standalone server 3.3.0, so I had to download it manually.
prefixes.length - 2
Version info: npm version 5.0.3, node v8.1.2. selenium-download version v2.0.10 Created a pull request here: https://github.com/groupon/selenium-download/pull/39
Current version of standalone server is 3.8.1, but the module downloads 3.7.0.
I'm using this script to download Selenium binaries in my project:
However, it is downloading the Selenium standalone jar version 3.3.0 although version 3.4.0 is available in the repository:
I checked the URL the script is getting the version information, and the latest version is the second to last CommonPrefixes element:
Why in this commit you get the previous one?
When I change the code to
prefixes.length - 2
it downloads the correct version. Right now, the latest Gekodriver (0.17.0) is not working with the "latest" standalone server 3.3.0, so I had to download it manually.Version info: npm version 5.0.3, node v8.1.2. selenium-download version v2.0.10 Created a pull request here: https://github.com/groupon/selenium-download/pull/39