This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.
In section 12.1.2, the getCookie method is defined as: GET /session/{sessionId}/cookie However, the subsequent prose indicates that a parameter indicating the cookie name to be retrieved can be optionally sent. Given that the command uses an HTTP GET (which is consistent with existing implementations, and likely should not be changed), it cannot have a payload that contains a name.
For the existing implementations, GET /session/{sessionId}/cookie returns ALL cookies visible to the current page. GET /session/{sessionId}/cookie/{name} returns a specific cookie.
As a point of clarification, no existing implementation implements GET /session/{sessionId}/cookie/{name}. They implement DELETE /session/{sessionId}/cookie/{name} for deleting a specific cookie, but the GET verb is entirely undefined.
fixed in https://github.com/w3c/webdriver/commit/08382499cb775645b61b313be4fd441b72259b56