From 3304afd2e897e786ac7b79223c8340b6260a6dea Mon Sep 17 00:00:00 2001 From: Manuel Thalmann Date: Wed, 7 Aug 2024 15:24:37 +0200 Subject: [PATCH] Ensure correct types for setting download dir --- scripts/Windows/Scripts/BrowserAutomation.ps1 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/Windows/Scripts/BrowserAutomation.ps1 b/scripts/Windows/Scripts/BrowserAutomation.ps1 index 133fc916..6a2c3373 100644 --- a/scripts/Windows/Scripts/BrowserAutomation.ps1 +++ b/scripts/Windows/Scripts/BrowserAutomation.ps1 @@ -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;