Skip to content

Commit

Permalink
6.24.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Grybyk committed Jun 18, 2021
1 parent 7e575d6 commit 39f4a1c
Show file tree
Hide file tree
Showing 5 changed files with 4,183 additions and 20 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 6.24.0 (2021-06-16)
* selenium 4 support
* update default versions
* package updates

# 6.23.0 (2020-12-02)
* allow specifying `fullURL` to download selenium or browser driver #520
* increased download and startup timeouts, and added more logging #519
Expand Down
12 changes: 7 additions & 5 deletions lib/compute-download-urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -382,17 +382,19 @@ async function resolveLatestVersion(opts, browserDriver, url) {

async function getLatestChromium(opts, browserDriver, url) {
const response = await got(url, { timeout: 10000 });
// edgewebdriver latest version file contains invalid characters
const version = response.body.replace(/\r|\n/g, '').replace(/[^\d|.]/g, '');
if (!version) {
return false;
}
// eslint-disable-next-line no-param-reassign
opts.drivers[browserDriver].version = response.body
// edgewebdriver latest version file contains invalid characters
.replace(/\r|\n/g, '')
.replace(/[^\d|.]/g, '');
opts.drivers[browserDriver].version = version;
return true;
}

async function getLatestGeckodriver(opts, browserDriver, url) {
const response = await got(url, { timeout: 10000, responseType: 'json' });
if (typeof response.body.name === 'string') {
if (typeof response.body.name === 'string' && response.body.name) {
// eslint-disable-next-line no-param-reassign
opts.drivers[browserDriver].version = response.body.name;
return true;
Expand Down
6 changes: 3 additions & 3 deletions lib/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ module.exports = () => {
drivers: {
chrome: {
version: 'latest',
fallbackVersion: '87.0.4280.20',
fallbackVersion: '91.0.4472.101',
arch: process.arch,
baseURL: 'https://chromedriver.storage.googleapis.com',
},
Expand All @@ -16,7 +16,7 @@ module.exports = () => {
},
firefox: {
version: 'latest',
fallbackVersion: '0.28.0',
fallbackVersion: '0.29.1',
arch: process.arch,
baseURL: 'https://github.com/mozilla/geckodriver/releases/download',
},
Expand All @@ -25,7 +25,7 @@ module.exports = () => {
},
chromiumedge: {
version: 'latest',
fallbackVersion: '87.0.637.0',
fallbackVersion: '91.0.864.53',
arch: process.arch,
baseURL: 'https://msedgedriver.azureedge.net',
},
Expand Down
Loading

0 comments on commit 39f4a1c

Please sign in to comment.