Puppeteer with Firefox minimal example

This is a minimal example of using Puppeteer with Firefox. It is based on How To Get Page HTML Source Code In Puppeteer

// Minimal puppeteer get page HTML source code example
const puppeteer = require('puppeteer');
(async () => {
  const browser = await puppeteer.launch({
    product: "firefox"
  const page = await browser.newPage();
  await page.goto('https://techoverflow.net', {waitUntil: 'domcontentloaded'});
  // Get page source code and log it to console
  console.log(await page.content());
  // Cleanup
  await browser.close();