// ps https://github.com/GoogleChrome/puppeteer/issues/3120 module.exports = { launch: { args: ['--disable-gpu', '--disable-dev-shm-usage', '--no-first-run', '--no-zygote','--window-size=1920,1080'], headless: false, // 是否为无头模式 defaultViewport: { width: 1920, height: 700 }, // 默认窗口的大小 // slowMo: process.env.SLOWMO ? process.env.SLOWMO : 0, // 是否慢动作执行测试 devtools: true }, };