diff --git a/images/win/scripts/Installers/Install-WinAppDriver.ps1 b/images/win/scripts/Installers/Install-WinAppDriver.ps1 index 38745dd92..a2a1dd3d4 100644 --- a/images/win/scripts/Installers/Install-WinAppDriver.ps1 +++ b/images/win/scripts/Installers/Install-WinAppDriver.ps1 @@ -3,8 +3,9 @@ ## Desc: Install Windows Application Driver (WinAppDriver) #################################################################################### +$LatestReleaseUrl = 'https://api.github.com/repos/microsoft/WinAppDriver/releases/latest' +$InstallerUrl = (Invoke-RestMethod -Uri $LatestReleaseUrl).assets.browser_download_url $InstallerName = "WindowsApplicationDriver.msi" -$InstallerUrl = "https://github.com/Microsoft/WinAppDriver/releases/download/v1.1/${InstallerName}" [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Binary -Url $InstallerUrl -Name $InstallerName