Created
August 20, 2018 17:49
-
-
Save tristansokol/b3345cadcd75b3c40ae837f7bc11960e 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
browser = await puppeteer.launch({ | |
headless: //Whether to run browser in headless mode | |
executablePath: //path to a specified version of chrome to run | |
slowMo: //slows down all actions | |
defaultViewport: { | |
width: | |
height: | |
deviceScaleFactor: | |
isMobile: | |
hasTouch: | |
} | |
args: //custom flags to run chrome with | |
userDataDir: | |
env: //environment variables, defaulting for process.env | |
}) | |
browser.newPage(); | |
browser.pages() | |
browser.close() | |
browser.createIncognitoBrowserContext(); | |
browser.userAgent() | |
browser.version() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment