Skip to content

Commit 254e534

Browse files
ShadowLNCdiemol
andauthored
[grid] Set savefile.default_directory for Chrome (#12109)
This allows PDF printing to the managed downloads directory when using Chrome with the --kiosk-printing flag. Fixes #12092 Co-authored-by: Diego Molina <[email protected]>
1 parent 098c597 commit 254e534

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

java/src/org/openqa/selenium/grid/node/local/LocalNode.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,8 @@ private Capabilities setDownloadsDirectory(UUID uuid, Capabilities caps) {
533533
"download.prompt_for_download",
534534
false,
535535
"download.default_directory",
536+
tempDir.getAbsolutePath(),
537+
"savefile.default_directory",
536538
tempDir.getAbsolutePath());
537539
String optionsKey = Browser.CHROME.is(caps) ? "goog:chromeOptions" : "ms:edgeOptions";
538540
return appendPrefs(caps, optionsKey, map);

0 commit comments

Comments
 (0)