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

Method failRequest

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

* Fails a network request. * * @param {number} requestId - The ID of the request to fail. * @returns {Promise } - A promise that resolves when the command is sent.

(requestId)

Source from the content-addressed store, hash-verified

258 * @returns {Promise<void>} - A promise that resolves when the command is sent.
259 */
260 async failRequest(requestId) {
261 const command = {
262 method: 'network.failRequest',
263 params: {
264 request: requestId.toString(),
265 },
266 }
267 await this.bidi.send(command)
268 }
269
270 /**
271 * Continues the network request with authentication but without providing credentials.

Callers 2

network_test.jsFile · 0.45

Calls 2

toStringMethod · 0.65
sendMethod · 0.65

Tested by

no test coverage detected