码迷,mamicode.com
首页 > 其他好文 > 详细

默认浏览器设置

时间:2018-10-06 17:55:55      阅读:158      评论:0      收藏:0      [点我收藏+]

标签:http   box   UNC   setting   esc   google   1.9   mode   false   

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.

默认浏览器设置

标签:http   box   UNC   setting   esc   google   1.9   mode   false   

原文地址:https://www.cnblogs.com/justart/p/9747757.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!