Skip to content

Instantly share code, notes, and snippets.

@joelanman
Created March 18, 2018 20:40
Show Gist options
  • Save joelanman/f912f062d5d20c7fa69568889d30b2b2 to your computer and use it in GitHub Desktop.
Save joelanman/f912f062d5d20c7fa69568889d30b2b2 to your computer and use it in GitHub Desktop.
const browser = await puppeteer.launch({
args: ['--no-sandbox',
'--disable-setuid-sandbox',
'--single-process',
'--homedir=/tmp',
'--data-path=/tmp/data-path',
'--disk-cache-dir=/tmp/cache-dir'],
executablePath: executablePath
});
const inputHTML = 'file://' + __dirname + '/input.html'
const page = await browser.newPage()
await page.goto(inputHTML)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment