From 7f1bc9ed1e3cff016136346e8f12eec301c6c11f Mon Sep 17 00:00:00 2001 From: Aleksandr Chebotov <47745270+al-cheb@users.noreply.github.com> Date: Mon, 14 Feb 2022 12:07:00 +0300 Subject: [PATCH] Set condition to install 98.0.1108.50 instead of 98.0.1108.51 (#5070) --- images/win/scripts/Installers/Install-Edge.ps1 | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/images/win/scripts/Installers/Install-Edge.ps1 b/images/win/scripts/Installers/Install-Edge.ps1 index 5b1e3a444..32eb8c60a 100644 --- a/images/win/scripts/Installers/Install-Edge.ps1 +++ b/images/win/scripts/Installers/Install-Edge.ps1 @@ -27,6 +27,14 @@ $EdgeDriverVersionFile = Start-DownloadWithRetry -Url $EdgeDriverVersionUrl -Nam Write-Host "Download Microsoft Edge WebDriver..." $EdgeDriverLatestVersion = Get-Content -Path $EdgeDriverVersionFile $EdgeDriverArchName = "edgedriver_win64.zip" + +# A temporary workaround to install the previous driver version because 98.0.1108.51 for win64 doesn't exist +if ($EdgeDriverLatestVersion -eq "98.0.1108.51") +{ + $EdgeDriverLatestVersion = "98.0.1108.50" + Set-Content -Path "${EdgeDriverPath}\versioninfo.txt" -Value $EdgeDriverLatestVersion +} + $EdgeDriverDownloadUrl = "https://msedgedriver.azureedge.net/${EdgeDriverLatestVersion}/${EdgeDriverArchName}" $EdgeDriverArchPath = Start-DownloadWithRetry -Url $EdgeDriverDownloadUrl -Name $EdgeDriverArchName