|
@@ -4,7 +4,7 @@ const shell = require('shelljs');
|
|
|
(async () => {
|
|
|
const browser = await puppeteer.launch({
|
|
|
// executablePath: './chromium/chrome.exe',
|
|
|
- args: ['--no-sandbox', '--disable-setuid-sandbox'],
|
|
|
+ args: ['--no-sandbox', '--disable-setuid-sandbox'], // 沙箱模式下运行
|
|
|
headless: true, //默认为true(无头),不显示浏览器界面
|
|
|
slowMo: 200, //减速显示,有时会作为模拟人操作特意减速
|
|
|
devtools: true //显示开发者工具。页面宽高默认800*600,把开发者工具显示再隐藏页面会占满屏幕,有没有大佬解释下?
|