createDriver~ thenableWebDriverProxy

new thenableWebDriverProxy(sessionnon-null, …rest)

Parameters:
NameTypeAttributesDescription
sessionIThenable.<!Session>
rest?<repeatable>

Extends

Members

catch

then

Methods

(async) addCredential(credential)

Injects a credential into the authenticator.

Parameters:
NameTypeDescription
credential

Credential to be added

(async) addVirtualAuthenticator(options)

Adds a virtual authenticator with the given options.

Parameters:
NameTypeDescription
options

VirtualAuthenticatorOptions object to set authenticator options.

(async) createCDPConnection() → (non-null) {Promise.<resolved>}

Creates a new WebSocket connection.

Returns:

A new CDP instance.

Type: 
Promise.<resolved>

(async) getBidi() → {BIDI}

Initiates bidi connection using 'webSocketUrl'

Returns:
Type: 
BIDI

(async) getCredentials()

Returns:

The list of credentials owned by the authenticator.

(async) getWsUrl(debuggerAddress, target, caps) → {string}

Retrieves 'webSocketDebuggerUrl' by sending a http request using debugger address

Parameters:
NameTypeDescription
debuggerAddressstring
target
caps
Returns:

Returns parsed webSocketDebuggerUrl obtained from the http request

Type: 
string

(async) logMutationEvents(connection, callback) → {Promise.<void>}

Parameters:
NameTypeDescription
connection
callback
Returns:
Type: 
Promise.<void>

(async) normalize_(webElementPromisenon-null) → (non-null) {Promise.<!WebElement>}

Parameters:
NameTypeDescription
webElementPromisefunction

The webElement in unresolved state

Returns:

First single WebElement from array of resolved promises

Type: 
Promise.<!WebElement>

(async) onIntercept(connection, httpResponse, callback)

Handle Network interception requests

Parameters:
NameTypeDescription
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.

(async) onLogEvent(connection, callback) → {Promise.<void>}

Parameters:
NameTypeDescription
connection
callback
Returns:
Type: 
Promise.<void>

(async) onLogException(connection, callback) → {Promise.<void>}

Parameters:
NameTypeDescription
connection
callback
Returns:
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

Parameters:
NameTypeDescription
usernamestring
passwordstring
connection

CDP Connection

(async) removeAllCredentials()

Removes all the credentials from the authenticator.

(async) removeCredential(credential_id)

Removes a credential from the authenticator.

Parameters:
NameTypeDescription
credential_id

The ID of the credential to be removed.

(async) removeVirtualAuthenticator()

Removes a previously added virtual authenticator. The authenticator is no longer valid after removal, so no methods may be called.

(async) setUserVerified(verified)

Sets whether the authenticator will simulate success or fail on user verification.

Parameters:
NameTypeDescription
verified

true if the authenticator will pass user verification, false otherwise.

virtualAuthenticatorId()

Returns:

The value of authenticator ID added