MCPcopy Index your code
hub / github.com/SeleniumHQ/selenium / createCookieSpec

Function createCookieSpec

javascript/selenium-webdriver/test/cookie_test.js:270–279  ·  view source on GitHub ↗
(opt_options)

Source from the content-addressed store, hash-verified

268 })
269
270 function createCookieSpec(opt_options) {
271 let spec = {
272 name: getRandomString(),
273 value: getRandomString(),
274 }
275 if (opt_options) {
276 spec = Object.assign(spec, opt_options)
277 }
278 return spec
279 }
280
281 function createSameSiteCookieSpec(sameSiteVal, extraProps) {
282 return {

Callers 1

cookie_test.jsFile · 0.70

Calls 1

getRandomStringFunction · 0.70

Tested by

no test coverage detected