Setting Printer from Selenium UI-Test #3850
Unanswered
pschwarzer-tt
asked this question in
Q&A
Replies: 1 comment
-
Or is there any possibility to set the default print settings on webview startup, compareable in setting the DefaultDownloadFolderPath, which allows me to set the "Save as PDF" option? |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
we are currently implementing Selenium UI-Tests for a WebView2 based application. The application runs as an executable and the Selenium-Tests are connected by --remote-debugging-port, which works fine. But one issue we still facing, how we can print with Selenium using the "Save as PDF" option by default?
In the WebView2 application we set the default download folder path with:
and we run the WebView2 application with additional browser arguments
--kiosk-mode
. Within the application we have a button, that triggerswindow.print()
.For us it looks like, the default printer seems to be "Microsoft Print to PDF", but this option ignores the value of
put_DefaultDownloadFolderPath
. "Save as PDF" handles filename and location propably.So how we can ensure, that printer "Save as PDF" is selected, when we start our Selenium Tests?
Beta Was this translation helpful? Give feedback.
All reactions