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() {
|
||||
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',
|
||||
|
|
Loading…
Reference in New Issue