Represents a browsing context related events. Described in https://w3c.github.io/webdriver-bidi/#module-contexts-events. While BrowsingContext class represents a browsing context lifecycle and related commands. This class is specific to listening to events. Events can be subscribed to multiple browsing contexts or all of them.
Subscribes to the 'browsingContext.contextCreated' event.
| Name | Type | Description |
|---|---|---|
callback | function | The callback function to handle the event. |
Subscribes to the 'browsingContext.contextDestroyed' event.
| Name | Type | Description |
|---|---|---|
callback | function | The callback function to handle the event. |
Subscribes to the 'browsingContext.load' event.
| Name | Type | Description |
|---|---|---|
callback | function | The callback function to handle the event. |
Subscribes to the 'browsingContext.domContentLoaded' event.
| Name | Type | Description |
|---|---|---|
callback | function | The callback function to handle the event. |
Subscribes to the 'browsingContext.fragmentNavigated' event.
| Name | Type | Description |
|---|---|---|
callback | function | The callback function to handle the event. |
Subscribe to the 'browsingContext.navigationStarted' event.
| Name | Type | Description |
|---|---|---|
callback | function | The callback function to handle the event. |
Subscribes to the 'browsingContext.userPromptClosed' event.
| Name | Type | Description |
|---|---|---|
callback | function | The callback function to handle the event. |
Subscribes to the 'browsingContext.userPromptOpened' event.
| Name | Type | Description |
|---|---|---|
callback | function | The callback function to handle the event. |