Driver agnostic plugin framework used by playwright-extra and puppeteer-extra.
yarn add automation-extra
Changelog
- v4.1
- Initial public release
- 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
andplaywright-extra
. - Supports both legacy PuppeteerExtraPlugins as well as new AutomationExtraPlugins.
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)
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)
Copyright © 2018 - 2020, berstend̡̲̫̹̠̖͚͓̔̄̓̐̄͛̀͘. Released under the MIT License.