diff --git a/images/win/scripts/Installers/Install-WinAppDriver.ps1 b/images/win/scripts/Installers/Install-WinAppDriver.ps1 index b33ff907..a2a1dd3d 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) #################################################################################### -$InstallerName = "WindowsApplicationDriver_1.2.1.msi" -$InstallerUrl = "https://github.com/Microsoft/WinAppDriver/releases/download/v1.2.1/${InstallerName}" +$LatestReleaseUrl = 'https://api.github.com/repos/microsoft/WinAppDriver/releases/latest' +$InstallerUrl = (Invoke-RestMethod -Uri $LatestReleaseUrl).assets.browser_download_url +$InstallerName = "WindowsApplicationDriver.msi" [Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12 Install-Binary -Url $InstallerUrl -Name $InstallerName