API Docs for: 0.0.6
Show:

FirefoxDriver.Commands.WebDriver.Cookie Class

Cookie related WebDriver endpoints see JsonWireProtocol

Methods

cookies

(
  • sessionId
  • cookie
)

Set a cookie. If the cookie path is not specified, it should be set to "/". Likewise, if the domain is omitted, it should default to the current page's domain.

Parameters:

  • sessionId GET

    ID of the session to route the command to

  • cookie POST

    A JSON object defining the cookie to add.

deleteCookie

(
  • sessionId
)

Delete the cookie with the given name. This command should be a no-op if there is no such cookie visible to the current page.

Parameters:

  • sessionId GET

    ID of the session to route the command to

deleteCookies

(
  • sessionId
)

Delete all cookies visible to the current page.

Parameters:

  • sessionId GET

    ID of the session to route the command to

getCookies

(
  • sessionId
)

Retrieve all cookies visible to the current page.

Parameters:

  • sessionId GET

    ID of the session to route the command to