We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dd25664 commit 0e0f1a4Copy full SHA for 0e0f1a4
Selenium.psm1
@@ -114,6 +114,14 @@ function Start-SeChrome {
114
115
}
116
117
+ if($Headless -and $DefaultDownloadPath) {
118
+ $HeadlessDownloadParams = New-Object 'system.collections.generic.dictionary[[System.String],[System.Object]]]'
119
+ $HeadlessDownloadParams.Add('behavior', 'allow')
120
+ $HeadlessDownloadParams.Add('downloadPath', $DefaultDownloadPath.FullName)
121
+
122
+ $Driver.ExecuteChromeCommand('Page.setDownloadBehavior', $HeadlessDownloadParams)
123
+ }
124
125
if($StartURL){
126
Enter-SeUrl -Driver $Driver -Url $StartURL
127
0 commit comments