puppeteer-extends
    Preparing search index...

    Interface PuppeteerPlugin

    Base interface for puppeteer-extends plugins

    interface PuppeteerPlugin {
        cleanup?: () => Promise<void>;
        initialize?: (options?: Record<string, any>) => Promise<void>;
        name: string;
        onAfterBrowserLaunch?: (
            browser: Browser,
            context: PluginContext,
        ) => Promise<void>;
        onAfterNavigation?: (
            page: Page,
            url: string,
            success: boolean,
            context: PluginContext,
        ) => Promise<void>;
        onBeforeBrowserClose?: (
            browser: Browser,
            context: PluginContext,
        ) => Promise<void>;
        onBeforeBrowserLaunch?: (
            options: any,
            context: PluginContext,
        ) => Promise<any>;
        onBeforeNavigation?: (
            page: Page,
            url: string,
            options: NavigationOptions,
            context: PluginContext,
        ) => Promise<void>;
        onBeforePageClose?: (page: Page, context: PluginContext) => Promise<void>;
        onError?: (error: Error, context: PluginContext) => Promise<boolean>;
        onPageCreated?: (page: Page, context: PluginContext) => Promise<void>;
        version?: string;
    }
    Index

    Properties

    cleanup?: () => Promise<void>
    initialize?: (options?: Record<string, any>) => Promise<void>
    name: string
    onAfterBrowserLaunch?: (
        browser: Browser,
        context: PluginContext,
    ) => Promise<void>
    onAfterNavigation?: (
        page: Page,
        url: string,
        success: boolean,
        context: PluginContext,
    ) => Promise<void>
    onBeforeBrowserClose?: (
        browser: Browser,
        context: PluginContext,
    ) => Promise<void>
    onBeforeBrowserLaunch?: (options: any, context: PluginContext) => Promise<any>
    onBeforeNavigation?: (
        page: Page,
        url: string,
        options: NavigationOptions,
        context: PluginContext,
    ) => Promise<void>
    onBeforePageClose?: (page: Page, context: PluginContext) => Promise<void>
    onError?: (error: Error, context: PluginContext) => Promise<boolean>
    onPageCreated?: (page: Page, context: PluginContext) => Promise<void>
    version?: string