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

Method value

javascript/selenium-webdriver/bidi/cookieFilter.js:45–51  ·  view source on GitHub ↗

* Sets the value of the cookie. * * @param {BytesValue} value - The value to be set. Must be an instance of BytesValue. * @returns {CookieFilter} - The updated CookieFilter instance for chaining. * @throws {Error} - If the value is not an instance of BytesValue.

(value)

Source from the content-addressed store, hash-verified

43 * @throws {Error} - If the value is not an instance of BytesValue.
44 */
45 value(value) {
46 if (!(value instanceof BytesValue)) {
47 throw new Error(`Value must be an instance of BytesValue. Received:'${value}'`)
48 }
49 this.#map.set('value', Object.fromEntries(value.asMap()))
50 return this
51 }
52
53 /**
54 * Sets the domain for the cookie.

Callers

nothing calls this directly

Calls 2

setMethod · 0.65
asMapMethod · 0.65

Tested by

no test coverage detected