From e6679307f9a1ab79c67e14d6e6ae923cf4f345dd Mon Sep 17 00:00:00 2001 From: Dibir Magomedsaygitov <61747324+dibir-magomedsaygitov@users.noreply.github.com> Date: Fri, 15 Oct 2021 11:36:47 +0300 Subject: [PATCH] [Windows] Pin Selenium to 3.141.59 version (#4276) --- images/win/scripts/Installers/Install-Selenium.ps1 | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/images/win/scripts/Installers/Install-Selenium.ps1 b/images/win/scripts/Installers/Install-Selenium.ps1 index 437e32dfe..af19dcd14 100644 --- a/images/win/scripts/Installers/Install-Selenium.ps1 +++ b/images/win/scripts/Installers/Install-Selenium.ps1 @@ -9,11 +9,12 @@ $seleniumFileName = "selenium-server-standalone.jar" New-Item -ItemType directory -Path $seleniumDirectory -# Download Selenium -$url = "https://api.github.com/repos/SeleniumHQ/selenium/releases/latest" -[System.String] $seleniumReleaseUrl = (Invoke-RestMethod -Uri $url).assets.browser_download_url -match "selenium-server-standalone-.+.jar" +# Temporarily download Selenium 3.141.59, since 4.* can contain some breaking changes +#$url = "https://api.github.com/repos/SeleniumHQ/selenium/releases" +#[System.String] $seleniumReleaseUrl = (Invoke-RestMethod -Uri $url).assets.browser_download_url -match "selenium-server-standalone-.+.jar" -Start-DownloadWithRetry -Url $seleniumReleaseUrl -Name $seleniumFileName -DownloadPath $seleniumDirectory +$seleniumDownloadUrl = "https://github.com/SeleniumHQ/selenium/releases/download/selenium-3.141.59/selenium-server-standalone-3.141.59.jar" +Start-DownloadWithRetry -Url $seleniumDownloadUrl -Name $seleniumFileName -DownloadPath $seleniumDirectory # Add SELENIUM_JAR_PATH environment variable $seleniumBinPath = Join-Path $seleniumDirectory $seleniumFileName