diff --git a/scripts/Windows/Software/reWASD/Manage.ps1 b/scripts/Windows/Software/reWASD/Manage.ps1 index 7781f411..bc9de734 100644 --- a/scripts/Windows/Software/reWASD/Manage.ps1 +++ b/scripts/Windows/Software/reWASD/Manage.ps1 @@ -34,7 +34,13 @@ param( -Installer { Write-Host "Downloading reWASD…"; $dir = New-TemporaryDirectory; - $file = Start-BrowserDownload -URL "https://rewasd.com/" -ButtonSelector 'a.btn-default[href="#"]' -OutDir $dir -Timeout 1; + Import-BrowserAutomation; + + $file = Start-BrowserDownload ` + -URL "https://rewasd.com/" ` + -ButtonSelector ([OpenQA.Selenium.By]::XPath('//nav[contains(@class, "navbar")]//a[contains(@class, "btn-outline-default")][normalize-space(text()) = "Download"]')) ` + -OutDir $dir ` + -Timeout 1; Write-Host "Installing reWASD…"; Start-Process -Wait -FilePath $($file.FullName) -ArgumentList "/S";