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

Method getCookies

javascript/selenium-webdriver/lib/webdriver.js:2087–2089  ·  view source on GitHub ↗

* Retrieves all cookies visible to the current page. Each cookie will be * returned as a JSON object as described by the WebDriver wire protocol. * * @return {!Promise<!Array<!Options.Cookie>>} A promise that will be * resolved with the cookies visible to the current browsing context

()

Source from the content-addressed store, hash-verified

2085 * resolved with the cookies visible to the current browsing context.
2086 */
2087 getCookies() {
2088 return this.driver_.execute(new command.Command(command.Name.GET_ALL_COOKIES))
2089 }
2090
2091 /**
2092 * Retrieves the cookie with the given name. Returns null if there is no such

Callers

nothing calls this directly

Calls 1

executeMethod · 0.65

Tested by

no test coverage detected