1. 程式人生 > >默認瀏覽器設置

默認瀏覽器設置

fresh () fault UNC down work str oge web

Default runtime settings

1. Uses Headless mode

Puppeteer launches Chromium in headless mode. To launch a full version of Chromium, set the ‘headless‘ option when launching a browser:

const browser = await puppeteer.launch({headless: false}); // default is true

2. Runs a bundled version of Chromium

By default, Puppeteer downloads and uses a specific version of Chromium so its API is guaranteed to work out of the box. To use Puppeteer with a different version of Chrome or Chromium, pass in the executable‘s path when creating a Browser

instance:

const browser = await puppeteer.launch({executablePath: ‘/path/to/Chrome‘});

See Puppeteer.launch() for more information.

See this article for a description of the differences between Chromium and Chrome. This article describes some differences for Linux users.

3. Creates a fresh user profile

Puppeteer creates its own Chromium user profile which it cleans up on every run.

默認瀏覽器設置