new thenableWebDriverProxy(sessionnon-null, …rest)
| Name | Type | Attributes | Description |
|---|---|---|---|
session | IThenable.<!Session> | ||
rest | ? | <repeatable> |
- Implements
Extends
Members
catch
then
Methods
(async) addCredential(credential)
Injects a credential into the authenticator.
| Name | Type | Description |
|---|---|---|
credential | Credential to be added |
- Overrides
- Source
(async) addVirtualAuthenticator(options)
Adds a virtual authenticator with the given options.
| Name | Type | Description |
|---|---|---|
options | VirtualAuthenticatorOptions object to set authenticator options. |
- Overrides
- Source
(async) createCDPConnection() → (non-null) {Promise.<resolved>}
Creates a new WebSocket connection.
- Overrides
- Source
A new CDP instance.
- Type:
- Promise.<resolved>
(async) fireSessionEvent(eventType, payloadopt) → (non-null) {Promise.<Object>}
Fires a custom session event to the remote server event bus.
This allows test code to trigger server-side utilities that subscribe to the event bus.
| Name | Type | Attributes | Default | Description |
|---|---|---|---|---|
eventType | string | The type of event (e.g., "test:failed", "log:collect"). | ||
payload | Object | <optional> | null | Optional data to include with the event. |
- Overrides
- Source
A promise that resolves to the response containing success status, event type, and timestamp.
- Type:
- Promise.<Object>
// Fire a simple event
await driver.fireSessionEvent('test:started');// Fire an event with payload
await driver.fireSessionEvent('test:failed', {
testName: 'LoginTest',
error: 'Element not found'
});(async) getBidi() → {BIDI}
Initiates bidi connection using 'webSocketUrl'
- Overrides
- Source
- Type:
- BIDI
(async) getCredentials()
- Overrides
- Source
The list of credentials owned by the authenticator.
(async) getWsUrl(debuggerAddress, target, caps) → {string}
Retrieves 'webSocketDebuggerUrl' by sending a http request using debugger address
| Name | Type | Description |
|---|---|---|
debuggerAddress | string | |
target | ||
caps |
- Overrides
- Source
Returns parsed webSocketDebuggerUrl obtained from the http request
- Type:
- string
(async) logMutationEvents(connection, callback) → {Promise.<void>}
| Name | Type | Description |
|---|---|---|
connection | ||
callback |
- Overrides
- Source
- Type:
- Promise.<void>
(async) normalize_(webElementPromisenon-null) → (non-null) {Promise.<!WebElement>}
| Name | Type | Description |
|---|---|---|
webElementPromise | function | The webElement in unresolved state |
- Overrides
- Source
First single WebElement from array of resolved promises
- Type:
- Promise.<!WebElement>
(async) onIntercept(connection, httpResponse, callback)
Handle Network interception requests
| Name | Type | Description |
|---|---|---|
connection | WebSocket connection to the browser | |
httpResponse | Object representing what we are intercepting as well as what should be returned. | |
callback | callback called when we intercept requests. |
- Overrides
- Source
(async) onLogEvent(connection, callback) → {Promise.<void>}
| Name | Type | Description |
|---|---|---|
connection | ||
callback |
- Overrides
- Source
- Type:
- Promise.<void>
(async) onLogException(connection, callback) → {Promise.<void>}
| Name | Type | Description |
|---|---|---|
connection | ||
callback |
- Overrides
- Source
- Type:
- Promise.<void>
(async) register(username, password, connection)
Sets a listener for Fetch.authRequired event from CDP If event is triggered, it enters username and password and allows the test to move forward
| Name | Type | Description |
|---|---|---|
username | string | |
password | string | |
connection | CDP Connection |
- Overrides
- Source
(async) removeAllCredentials()
Removes all the credentials from the authenticator.
- Overrides
- Source
(async) removeCredential(credential_id)
Removes a credential from the authenticator.
| Name | Type | Description |
|---|---|---|
credential_id | The ID of the credential to be removed. |
- Overrides
- Source
(async) removeVirtualAuthenticator()
Removes a previously added virtual authenticator. The authenticator is no longer valid after removal, so no methods may be called.
- Overrides
- Source
(async) setUserVerified(verified)
Sets whether the authenticator will simulate success or fail on user verification.
| Name | Type | Description |
|---|---|---|
verified | true if the authenticator will pass user verification, false otherwise. |
- Overrides
- Source
virtualAuthenticatorId()
- Overrides
- Source
The value of authenticator ID added