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) 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