Refactor reWASD download for new website
This commit is contained in:
parent
05afb80c6d
commit
270eca903e
1 changed files with 7 additions and 1 deletions
|
@ -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";
|
||||
|
|
Loading…
Reference in a new issue