Skip to content

Commit 39f4a1c

Browse files
author
Mike Grybyk
committed
6.24.0
1 parent 7e575d6 commit 39f4a1c

File tree

5 files changed

+4183
-20
lines changed

5 files changed

+4183
-20
lines changed

HISTORY.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# 6.24.0 (2021-06-16)
2+
* selenium 4 support
3+
* update default versions
4+
* package updates
5+
16
# 6.23.0 (2020-12-02)
27
* allow specifying `fullURL` to download selenium or browser driver #520
38
* increased download and startup timeouts, and added more logging #519

lib/compute-download-urls.js

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -382,17 +382,19 @@ async function resolveLatestVersion(opts, browserDriver, url) {
382382

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

393395
async function getLatestGeckodriver(opts, browserDriver, url) {
394396
const response = await got(url, { timeout: 10000, responseType: 'json' });
395-
if (typeof response.body.name === 'string') {
397+
if (typeof response.body.name === 'string' && response.body.name) {
396398
// eslint-disable-next-line no-param-reassign
397399
opts.drivers[browserDriver].version = response.body.name;
398400
return true;

lib/default-config.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ module.exports = () => {
55
drivers: {
66
chrome: {
77
version: 'latest',
8-
fallbackVersion: '87.0.4280.20',
8+
fallbackVersion: '91.0.4472.101',
99
arch: process.arch,
1010
baseURL: 'https://chromedriver.storage.googleapis.com',
1111
},
@@ -16,7 +16,7 @@ module.exports = () => {
1616
},
1717
firefox: {
1818
version: 'latest',
19-
fallbackVersion: '0.28.0',
19+
fallbackVersion: '0.29.1',
2020
arch: process.arch,
2121
baseURL: 'https://github.com/mozilla/geckodriver/releases/download',
2222
},
@@ -25,7 +25,7 @@ module.exports = () => {
2525
},
2626
chromiumedge: {
2727
version: 'latest',
28-
fallbackVersion: '87.0.637.0',
28+
fallbackVersion: '91.0.864.53',
2929
arch: process.arch,
3030
baseURL: 'https://msedgedriver.azureedge.net',
3131
},

0 commit comments

Comments
 (0)