refactor(puppeteer): added slowMo 5 to puppeteer actions for stability

This commit is contained in:
Carlos Jimenez Ruiz 2021-10-19 13:00:24 +02:00
parent 5be2eb974f
commit da00b231ba
1 changed files with 5 additions and 4 deletions

View File

@ -5,10 +5,11 @@ import {url as defaultURL} from './config';
export async function getBrowser() {
const args = [
'--no-sandbox',
`--window-size=${ 1920 },${ 1080 }`,
'--single-process',
'--no-zygote'
// '--disable-gpu'
// '--no-sandbox',
// '--single-process',
// '--no-zygote',
// '--disable-dev-shm-usage'
// '--full-memory-crash-report',
// '--unlimited-storage'
@ -26,7 +27,7 @@ export async function getBrowser() {
args,
defaultViewport: null,
headless: headless,
slowMo: 0, // slow down by ms
slowMo: 5, // slow down by ms
// ignoreDefaultArgs: ['--disable-extensions'],
// executablePath: '/usr/bin/google-chrome-stable',
// executablePath: '/usr/bin/firefox-developer-edition',