1.0.0 • Published 3 years ago

automation-extra v1.0.0

Weekly downloads
140
License
MIT
Repository
-
Last release
3 years ago

automation-extra GitHub Workflow Status Discord npm

Driver agnostic plugin framework used by playwright-extra and puppeteer-extra.

Installation

yarn add automation-extra
  • v4.1
    • Initial public release

Context

  • A rewrite of the puppeteer-extra plugin system to be driver agnostic and support both Puppeteer and Playwright.
  • Not meant to be used directly by end-users but through puppeteer-extra and playwright-extra.
  • Supports both legacy PuppeteerExtraPlugins as well as new AutomationExtraPlugins.

API

Table of Contents

addExtraPlaywright(launcher)

  • launcher PlaywrightBrowserLauncher Playwright (or compatible) browser launcher

Returns: PlaywrightExtra

Augment the provided Playwright browser launcher with plugin functionality.

Example:

import playwright from 'playwright'
const chromium = addExtra(playwright.chromium)
chromium.use(plugin)

addExtraPuppeteer(launcher)

  • launcher PuppeteerBrowserLauncher Puppeteer (or compatible) browser launcher

Returns: PuppeteerExtra

Augment the provided Puppeteer browser launcher with plugin functionality.

Example:

import vanillaPuppeteer from 'puppeteer'
const puppeteer = addExtra(vanillaPuppeteer)
puppeteer.use(plugin)

License

Copyright © 2018 - 2020, berstend̡̲̫̹̠̖͚͓̔̄̓̐̄͛̀͘. Released under the MIT License.