Skip to content

[🐛 Bug]: Cookies management is not consistent #14884

Open
@nvborisenko

Description

@nvborisenko

What happened?

In C#:

driver.FindElement(By.CssSelector("abc")); // throws NoSuchElement
driver.Manage().Cookies.GetCookieNamed("abc"); // null if not found

But according spec it should throw an exception: https://www.w3.org/TR/webdriver2/#get-named-cookie

How can we reproduce the issue?

It is about API consistency

Relevant log output

No output

Operating System

any

Selenium version

any

What are the browser(s) and version(s) where you see this issue?

any

What are the browser driver(s) and version(s) where you see this issue?

any

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-needs decisionTLC needs to discuss and agreeC-dotnet.NET BindingsC-javaJava BindingsC-nodejsJavaScript BindingsC-pyPython BindingsC-rbRuby BindingsI-defectSomething is not working as intended

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions