Files
puppeteer/docs/api/puppeteer.realm.extension.md

555 B

sidebar_label
sidebar_label
Realm.extension

Realm.extension() method

Returns the Extension that created this realm, if applicable. This is typically populated when the realm was created by an extension content script injected into a page.

Signature

class Realm {
  abstract extension(): Promise<Extension | null>;
}

Returns:

Promise<Extension | null>

A promise that resolves to the Extension or null if not created by an extension.