Minimal implementation of the Puppeteer API for Firefox.
MIT License
Headless Firefox NodeJS API based on FoxDriver (written by the wonderful folks at Sauce Labs), which is compatible with Puppeteer API.
Execute npm start
for details.
Network Throttling
It's on NPM, so add puppeteer-fx
to your dependencies in package.json, or:
npm install puppeteer-fx
const puppeteer = require('./puppeteer-fx');
(async () => {
const browser = await puppeteer.launch({headless: false});
const page = await browser.newPage();
await page.goto('https://mozilla.github.io/arewefastyet-speedometer/2.0/');
await page.evaluate(
'document.querySelector("section#home div.buttons button").click()'
);
})();
Base: https://github.com/saucelabs/foxdriver/blob/master/lib/config/profile/prefs.js
More: https://github.com/autonome/puppeteer-fx/blob/master/source/install/user_prefs.json