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
timeoutSettingsTimeoutSettings
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
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
Remarks
This API is experimental.