Skip to content

[πŸ› Bug]: driver.Manage().Cookies.AddCookie(); with Native aot(c#)Β #13363

@katanakatana123

Description

@katanakatana123

What happened?

when i use driver.Manage().Cookies.AddCookie(); i got the error OpenQA.Selenium.WebDriverArgumentException: invalid argument: missing 'name',
i think the problem comes from here

protected virtual Response Execute(string driverCommandToExecute, Dictionary<string, object> parameters)
, when native aot cannot resolve json class

How can we reproduce the issue?

driver.Manage().Cookies.AddCookie();

Relevant log output

OpenQA.Selenium.WebDriverArgumentException: invalid argument: missing 'name',

Operating System

window 10

Selenium version

newest

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

120

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

120

Are you using Selenium Grid?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    C-dotnet.NET BindingsI-defectSomething is not working as intendedR-awaiting mergePR depends on another PR for merging

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions