MCPcopy Create free account
hub / github.com/SeleniumHQ/selenium / continueWithAuth

Method continueWithAuth

javascript/selenium-webdriver/bidi/network.js:238–252  ·  view source on GitHub ↗

* Continues the network request with authentication credentials. * @param {string} requestId - The ID of the request to continue. * @param {string} username - The username for authentication. * @param {string} password - The password for authentication. * @returns {Promise } - A pro

(requestId, username, password)

Source from the content-addressed store, hash-verified

236 * @returns {Promise<void>} - A promise that resolves when the command is sent.
237 */
238 async continueWithAuth(requestId, username, password) {
239 const command = {
240 method: 'network.continueWithAuth',
241 params: {
242 request: requestId.toString(),
243 action: 'provideCredentials',
244 credentials: {
245 type: 'password',
246 username: username,
247 password: password,
248 },
249 },
250 }
251 await this.bidi.send(command)
252 }
253
254 /**
255 * Fails a network request.

Callers 2

#initMethod · 0.45

Calls 2

toStringMethod · 0.65
sendMethod · 0.65

Tested by

no test coverage detected