Realm
Namespace: PuppeteerSharp
public abstract class RealmRepresents an execution context (realm) within a frame or worker.
Inheritance: object
Constructors
Section titled “Constructors”Realm(TimeoutSettings)
Section titled “Realm(TimeoutSettings)”protected Realm(TimeoutSettings timeoutSettings)Represents an execution context (realm) within a frame or worker.
Parameters
| Name | Type | Description |
|---|---|---|
timeoutSettings |
TimeoutSettings |
Properties
Section titled “Properties”Origin
Section titled “Origin”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.
Methods
Section titled “Methods”ExtensionAsync()
Section titled “ExtensionAsync()”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.
Made with love by Dario Kondratiuk