Skip to content

[Feature Request] Ability to set preferences #213

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
Niek opened this issue Aug 8, 2020 · 4 comments
Closed

[Feature Request] Ability to set preferences #213

Niek opened this issue Aug 8, 2020 · 4 comments

Comments

@Niek
Copy link
Contributor

Niek commented Aug 8, 2020

Some features can't be changed with Chrome flags, but require a manual entry in the data dir Preferences file. For example: the --lang flag is (no longer?) working on macOS, but intl.accept_languages preference works fine.

It would be great if launch() would have an extraPrefs or similar option to pass in an JSON object of preferences to put in the data dir Preferences file.

@christian-bromann
Copy link
Contributor

Created a PR adding this feature request as we need it in WebdriverIO too.

@VincentClair
Copy link

Actually, I can't make it work with --lang on Mac (Chrome 93.0.4577.63 (Mac OS 10.15.7)), FR language by default.

    customLaunchers: {
        ChromeEn: {
          base: 'Chrome',
          flags: ['--lang=en']
        },
    }

@Niek mentioned a manual entry in the data dir Preferences file. Where can i find it and how can I set it please ?
Or have you another way to configure language (in order to wait for PR) ?

@Niek
Copy link
Contributor Author

Niek commented Sep 7, 2021

@VincentClair you need to write the JSON Preferences file to the user data dir prior to starting Chrome. See https://niek.github.io/chrome-features/ (bottom of page) for a list of available settings.

@Niek
Copy link
Contributor Author

Niek commented Oct 7, 2021

Fixed in #247 - closing issue

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants