2019-12-13 09:48:00 -05:00
|
|
|
####################################################################################
|
|
|
|
|
## File: Install-WinAppDriver.ps1
|
|
|
|
|
## Desc: Install Windows Application Driver (WinAppDriver)
|
|
|
|
|
####################################################################################
|
|
|
|
|
|
2020-11-06 02:52:23 +03:00
|
|
|
$LatestReleaseUrl = 'https://api.github.com/repos/microsoft/WinAppDriver/releases/latest'
|
|
|
|
|
$InstallerUrl = (Invoke-RestMethod -Uri $LatestReleaseUrl).assets.browser_download_url
|
|
|
|
|
$InstallerName = "WindowsApplicationDriver.msi"
|
2020-04-21 11:58:27 +03:00
|
|
|
|
2019-12-13 09:48:00 -05:00
|
|
|
[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12
|
2020-04-21 11:58:27 +03:00
|
|
|
Install-Binary -Url $InstallerUrl -Name $InstallerName
|
2020-07-30 12:12:49 +05:00
|
|
|
|
2021-08-04 22:35:44 +03:00
|
|
|
Invoke-PesterTests -TestFile "WinAppDriver" -TestName "WinAppDriver"
|