Skip to content

Allow to specify Secure, HttpOnly and SameSite attributes when adding new cookie with dotnet bindings #9063

@BoundedChenn31

Description

@BoundedChenn31

🚀 Feature Proposal

According to WebDriver specification of Add Cookie it should be possible to set various cookie attributes, like domain and expiration time. However, constructor of Cookie class in dotnet bindings doesn't have parameters for 3 of them: Secure, HttpOnly, SameSite.

public Cookie(string name, string value, string domain, string path, DateTime? expiry)

Would be great to have them like guys in js do :)

addCookie({ name, value, path, domain, secure, httpOnly, expiry, sameSite }) {

Motivation

.

Example

.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions