Comment by
aussi...@gmail.com:
Score: Positive
General Comment:
Hi.
I am new user of Selenium libraries, so please, correct me if I am posting
my question to the wrong board.
My automation (.NET, Selenium 2.48.2, Chrome Version 47.0.2526.106 m)
encountered an exception "Cookie name cannot be null or empty
string\r\nParameter name: name" with following stack:
at OpenQA.Selenium.Cookie..ctor(String name, String value, String domain,
String path, Nullable`1 expiry) in
e:\mypath\dotnet\src\webdriver\Cookie.cs:line 56
at OpenQA.Selenium.Internal.ReturnedCookie..ctor(String name, String
value, String domain, String path, Nullable`1 expiry, Boolean isSecure,
Boolean isHttpOnly) in
e:\mypath\dotnet\src\webdriver\Internal\ReturnedCookie.cs:line 49
at OpenQA.Selenium.Cookie.FromDictionary(Dictionary`2 rawCookie) in
e:\mypath\dotnet\src\webdriver\Cookie.cs:line 268
at OpenQA.Selenium.Remote.RemoteCookieJar.GetAllCookies() in
e:\mypath\dotnet\src\webdriver\Remote\RemoteCookieJar.cs:line 136
I have Selenium source, so it looks like the constructor of class Cookie
(Cookie.cs) explicitly checks for an empty value of the name string.
Apparently it is possible to have a cookie with an empty name, so I think
that the Selenium should not throw an execution at this point and break the
execution.
I cannot challenge the validity of such cookie, (it is analytical and is
external to my team).
This is a bug in Selenium. Is there better board to report this incident?
The repro would be:
Start Chrome with url "
http://www.paulaschoice.com"
Press F12
Navigate to the Tab Resources.
Expand the Cookies node, find sub-node "
rainbow-ca-p.mythings.com"
In the right pane observe column name:
It contains a row with empty name and value "|1"
Thank you.