mirror of
https://github.com/actions/runner-images.git
synced 2025-12-15 06:08:07 +00:00
14 lines
699 B
PowerShell
14 lines
699 B
PowerShell
####################################################################################
|
|
## File: Install-WinAppDriver.ps1
|
|
## 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"
|
|
|
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
|
Install-Binary -Url $InstallerUrl -Name $InstallerName
|
|
|
|
Invoke-PesterTests -TestFile "WinAppDriver" -TestName "WinAppDriver"
|