From 0ccea0685c04051cd1f91ee0c3f0022f67e91bcb Mon Sep 17 00:00:00 2001 From: "Pijnacker, Ronald" Date: Fri, 13 Oct 2023 08:51:31 +0200 Subject: [PATCH] Update Chrome download from chrome-for-testing --- src/SeleniumTunnel.ts | 7 ++++--- src/webdrivers.json | 4 ++-- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/SeleniumTunnel.ts b/src/SeleniumTunnel.ts index a49192a..28456fe 100644 --- a/src/SeleniumTunnel.ts +++ b/src/SeleniumTunnel.ts @@ -482,7 +482,7 @@ class ChromeConfig }); platform = isGreater ? 'mac64' : 'mac32'; } - return format('chromedriver_%s.zip', platform); + return format('chromedriver-%s.zip', platform); } get directory() { @@ -490,13 +490,14 @@ class ChromeConfig } get url() { - return format('%s/%s/%s', this.baseUrl, this.version, this.artifact); + return format('%s/%s/%s/%s', this.baseUrl, this.version, this.platform, this.artifact); } get executable() { return join( this.directory, - this.platform === 'win32' ? 'chromedriver.exe' : 'chromedriver' + format('chromedriver-%s', this.platform), + this.platform === 'win32' || this.platform === 'win64' ? 'chromedriver.exe' : 'chromedriver' ); } diff --git a/src/webdrivers.json b/src/webdrivers.json index 976c516..43a1897 100644 --- a/src/webdrivers.json +++ b/src/webdrivers.json @@ -6,8 +6,8 @@ "latest": "3.141.59" }, "chrome": { - "baseUrl": "https://chromedriver.storage.googleapis.com", - "latest": "105.0.5195.52" + "baseUrl": "https://edgedl.me.gvt1.com/edgedl/chrome/chrome-for-testing", + "latest": "118.0.5993.70" }, "firefox": { "baseUrl": "https://github.com/mozilla/geckodriver/releases/download",