Created
March 18, 2018 20:40
-
-
Save joelanman/f912f062d5d20c7fa69568889d30b2b2 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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