Table of Contents

Class Realm

Namespace
PuppeteerSharp
Assembly
PuppeteerSharp.dll

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

public abstract class Realm
Inheritance
Realm

Constructors

Realm(TimeoutSettings)

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

protected Realm(TimeoutSettings timeoutSettings)

Parameters

timeoutSettings TimeoutSettings

Properties

Origin

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

public abstract string Origin { get; }

Property Value

string

Remarks

This API is experimental.

Methods

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.

public abstract Task<Extension> ExtensionAsync()

Returns

Task<Extension>

A task that resolves to the Extension that created this realm, or null.

Remarks

This API is experimental.