1.0.0-alpha.2 • Published 5 months ago

@tollbit/playwright v1.0.0-alpha.2

Weekly downloads
-
License
-
Repository
-
Last release
5 months ago

@tollbit/playwright

This package contains a plugin-style component to help playwright scripts access sites using the Tollbit proxy.

Note: This plugin is in early development, the APIs may change over time

Initialization

You can initialize the plugin using the following:

import { TollbitPlaywrightPlugin } from "@tollbit/playwright";

const plugin = TollbitPlaywrightPlugin.fromConfig({
  clientConfig: {
    apiKey: process.env.TOLLBIT_API_KEY,
  },
});

await plugin.attachToContext(context);

This plugin will automatically add hooks onto your playwright browser under the **/* route to detect tollbit sites and automatically handle including the token on requests (as well as retrying requests that failed due to 401).

1.0.0-alpha.2

5 months ago

1.0.0-alpha.1

5 months ago

1.0.0-alpha.0

5 months ago