Ensure correct types for setting download dir
This commit is contained in:
parent
181426ee41
commit
3304afd2e8
|
@ -62,7 +62,7 @@ $null = New-Module {
|
||||||
Write-Host "Downloading ``$URL`` using browser automation…";
|
Write-Host "Downloading ``$URL`` using browser automation…";
|
||||||
$options = [OpenQA.Selenium.Firefox.FirefoxOptions]::new();
|
$options = [OpenQA.Selenium.Firefox.FirefoxOptions]::new();
|
||||||
$options.SetPreference("browser.download.folderList", 2);
|
$options.SetPreference("browser.download.folderList", 2);
|
||||||
$options.SetPreference("browser.download.dir", $dir);
|
$options.SetPreference("browser.download.dir", "$dir");
|
||||||
|
|
||||||
$downloadChecker = {
|
$downloadChecker = {
|
||||||
$files = Get-ChildItem $dir;
|
$files = Get-ChildItem $dir;
|
||||||
|
|
Loading…
Reference in a new issue