Skip to content

Instantly share code, notes, and snippets.

@kypflug
Created November 4, 2019 00:54
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kypflug/0f5aafba072ef3b3428e52fdef7552d6 to your computer and use it in GitHub Desktop.
Save kypflug/0f5aafba072ef3b3428e52fdef7552d6 to your computer and use it in GitHub Desktop.
Running Puppeteer against Edge (Chromium)
const puppeteer = require('puppeteer');
(async () => {
const browser = await puppeteer.launch({executablePath: '\\msedge.exe'});
const page = await browser.newPage();
await page.goto('https://example.com');
await page.screenshot({path: 'example.png'});
await browser.close();
})();
@vandancd
Copy link

Where is the executable path on macOS?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment