Skip to content

Realm

Namespace: PuppeteerSharp

public abstract class Realm

Represents an execution context (realm) within a frame or worker.

Inheritance: object

View source

protected Realm(TimeoutSettings timeoutSettings)

Represents an execution context (realm) within a frame or worker.

Parameters

Name Type Description
timeoutSettings TimeoutSettings

View source

public abstract string Origin { get; }

Gets the origin that created this Realm. For example, a Chrome extension content script would have an origin like chrome-extension://<extension-id>.

Value: string

This API is experimental.

View source

public abstract Task<Extension> ExtensionAsync()

Returns the extension that created this realm, if the realm was created from an Extension. An example of this is an extension content script running on a page.

Returns: Task<Extension> — A task that resolves to the Extension that created this realm, or null.

This API is experimental.

View source

Made with love by Dario Kondratiuk