Skip to content

[🚀 Feature]: Use dedicated WebDriver Spec endpoint to get named cookie #15044

Description

@nvborisenko

Feature and motivation

Problem: To get cookie by name we fetch all cookies and then filter them out internally.

Spec: https://www.w3.org/TR/webdriver2/#get-named-cookie

Usage example

C#:

driver.Manage().Cookies.GetCookieNamed("abc");

Solution

This method should send GET /session/{sessionId}/cookie/{name} request. {name} is not null or empty, otherwise remote end returns the list of all cookies.

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-javaJava BindingsI-enhancementSomething could be better

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions