Allow to set Chrome preferences when running tests with Puppeteer #7351
Labels
devtools
DevTools protocol
good first pick
a reasonable task to start getting familiar with the code base
help wanted
Issues that are free to take by anyone interested
Is your feature request related to a problem? Please describe.
With the following test you are able to specify preferences, e.g. default download directory, in Chrome using WebDriver:
The
prefs
property is not respected when starting sessions using Puppeteer.Describe the solution you'd like
I would suggest to create a temporary directory with a preference file that contains these preferences. Then pass this directory as
customDataDir
to the launch method, like in this exampe. This should only happen if someone defines these prefs.Describe alternatives you've considered
In WebDriver this obviously works already.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: