Methods
(async) onBrowsingContextCreated(callback) → {Promise.<void>}
Subscribes to the 'browsingContext.contextCreated' event.
Name | Type | Description |
---|---|---|
callback | function | The callback function to handle the event. |
- A promise that resolves when the event is emitted.
- Type:
- Promise.<void>
(async) onBrowsingContextDestroyed(callback) → {Promise.<void>}
Subscribes to the 'browsingContext.contextDestroyed' event.
Name | Type | Description |
---|---|---|
callback | function | The callback function to handle the event. |
- A promise that resolves when the event is emitted.
- Type:
- Promise.<void>
(async) onBrowsingContextLoaded(callback) → {Promise.<void>}
Subscribes to the 'browsingContext.load' event.
Name | Type | Description |
---|---|---|
callback | function | The callback function to handle the event. |
- A promise that resolves when the event is emitted.
- Type:
- Promise.<void>
(async) onDomContentLoaded(callback) → {Promise.<void>}
Subscribes to the 'browsingContext.domContentLoaded' event.
Name | Type | Description |
---|---|---|
callback | function | The callback function to handle the event. |
- A promise that resolves when the event is emitted.
- Type:
- Promise.<void>
(async) onFragmentNavigated(callback) → {Promise.<void>}
Subscribes to the 'browsingContext.fragmentNavigated' event.
Name | Type | Description |
---|---|---|
callback | function | The callback function to handle the event. |
- A promise that resolves when the event is emitted.
- Type:
- Promise.<void>
(async) onNavigationStarted(callback) → {Promise.<void>}
Subscribe to the 'browsingContext.navigationStarted' event.
Name | Type | Description |
---|---|---|
callback | function | The callback function to handle the event. |
- A promise that resolves when the event is emitted.
- Type:
- Promise.<void>
(async) onUserPromptClosed(callback) → {Promise.<void>}
Subscribes to the 'browsingContext.userPromptClosed' event.
Name | Type | Description |
---|---|---|
callback | function | The callback function to handle the event. |
- A promise that resolves when the event is emitted.
- Type:
- Promise.<void>
(async) onUserPromptOpened(callback) → {Promise.<void>}
Subscribes to the 'browsingContext.userPromptOpened' event.
Name | Type | Description |
---|---|---|
callback | function | The callback function to handle the event. |
- A promise that resolves when the event is emitted.
- Type:
- Promise.<void>