Ensure correct types for setting download dir

This commit is contained in:
Manuel Thalmann 2024-08-07 15:24:37 +02:00
parent 181426ee41
commit 3304afd2e8

View file

@ -62,7 +62,7 @@ $null = New-Module {
Write-Host "Downloading ``$URL`` using browser automation…";
$options = [OpenQA.Selenium.Firefox.FirefoxOptions]::new();
$options.SetPreference("browser.download.folderList", 2);
$options.SetPreference("browser.download.dir", $dir);
$options.SetPreference("browser.download.dir", "$dir");
$downloadChecker = {
$files = Get-ChildItem $dir;