Skip to content
master
Switch branches/tags
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Puppeteer for Firefox

Headless Firefox NodeJS API based on FoxDriver (written by the wonderful folks at Sauce Labs), which is compatible with Puppeteer API.

NPM Dependency Build Status

NPM

Supported APIs

Execute npm start for details.

Extra APIs

Network Throttling

  • Firefox-only
  • Add "throttling" option to launch()
  • Supported properties
    • downloadThroughput: integer, bytes/s, defaults to 75000
    • uploadThroughput: integer, bytes/s, defaults to 25000
    • latency: integer, in milliseconds, defaults to 100

Installation

It's on NPM, so add puppeteer-fx to your dependencies in package.json, or:

npm install puppeteer-fx

Example

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()'
    );
})();

Profiles

Similar works

About

Minimal implementation of the Puppeteer API for Firefox.

Resources

License

Releases

No releases published

Packages

No packages published