-
Notifications
You must be signed in to change notification settings - Fork 9.4k
Closed
Labels
Description
Steps to reproduce
Tell us about your environment:
- Puppeteer version: 3.10
- Platform / OS version: OSX 10.14.6
- URLs (if applicable):
- Node.js version: 10.9.0
What steps will reproduce the problem?
- npm install puppeteer
- run the following code:
const puppeteer = require("puppeteer");
(async function() {
const u = "https://www.google.com/search?q=foo"
const browser = await puppeteer.launch({
headless: false,
args: ['--lang="en-US"'],
});
page = await browser.newPage();
await page.goto(u);
})();- I am in Israel the results are in Hebrew and sometimes German oddly enough.
- When I launch my local chromium like this:
$ node_modules/puppeteer/.local-chromium/mac-756035/chrome-mac/Chromium.app/Contents/MacOS/Chromium --lang="en-US"
and search for "foo" my results are in English.
What is the expected result?
Chromium should be launched in the language specified by the lang arg.
What happens instead?
Chromium seems to launch in the language of my location and ignores the lang arg to launch.

Reactions are currently unavailable