refactor(puppeteer): added slowMo 5 to puppeteer actions for stability
This commit is contained in:
parent
5be2eb974f
commit
da00b231ba
|
@ -5,10 +5,11 @@ import {url as defaultURL} from './config';
|
||||||
|
|
||||||
export async function getBrowser() {
|
export async function getBrowser() {
|
||||||
const args = [
|
const args = [
|
||||||
'--no-sandbox',
|
|
||||||
`--window-size=${ 1920 },${ 1080 }`,
|
`--window-size=${ 1920 },${ 1080 }`,
|
||||||
'--single-process',
|
// '--disable-gpu'
|
||||||
'--no-zygote'
|
// '--no-sandbox',
|
||||||
|
// '--single-process',
|
||||||
|
// '--no-zygote',
|
||||||
// '--disable-dev-shm-usage'
|
// '--disable-dev-shm-usage'
|
||||||
// '--full-memory-crash-report',
|
// '--full-memory-crash-report',
|
||||||
// '--unlimited-storage'
|
// '--unlimited-storage'
|
||||||
|
@ -26,7 +27,7 @@ export async function getBrowser() {
|
||||||
args,
|
args,
|
||||||
defaultViewport: null,
|
defaultViewport: null,
|
||||||
headless: headless,
|
headless: headless,
|
||||||
slowMo: 0, // slow down by ms
|
slowMo: 5, // slow down by ms
|
||||||
// ignoreDefaultArgs: ['--disable-extensions'],
|
// ignoreDefaultArgs: ['--disable-extensions'],
|
||||||
// executablePath: '/usr/bin/google-chrome-stable',
|
// executablePath: '/usr/bin/google-chrome-stable',
|
||||||
// executablePath: '/usr/bin/firefox-developer-edition',
|
// executablePath: '/usr/bin/firefox-developer-edition',
|
||||||
|
|
Loading…
Reference in New Issue