Comment #37 on issue 1227 by
anand...@gmail.com: IE driver - Does not set
cookie
http://code.google.com/p/selenium/issues/detail?id=1227
Jim, here is the log from IEDriver version 2.39. Selenium server version is
2.39 as well. Test was to read all cookies, delete the JSessionID cookie
and add it back with a new value.
D 2014-02-13 12:19:54:555 server.cc(239) Command: POST
/session/912c7d96-669e-47d6-b10d-66aae627f1ff/cookie
{"cookie":{"name":"JSESSIONID","secure":false,"value":":1755905sm","path":"/","class":"org.openqa.selenium.Cookie","hCode":1737295111}}
T 2014-02-13 12:19:54:555 server.cc(346) Entering Server::LookupSession
T 2014-02-13 12:19:54:555 IESession.cpp(187) Entering
IESession::ExecuteCommand
T 2014-02-13 12:19:54:555 IECommandExecutor.cpp(151) Entering
IECommandExecutor::OnSetCommand
T 2014-02-13 12:19:54:555 command.cc(27) Entering Command::Populate
D 2014-02-13 12:19:54:555 command.cc(33) Raw JSON command:
{ "command" : "addCookie", "locator" :
{ "sessionid" : "912c7d96-669e-47d6-b10d-66aae627f1ff" }, "parameters" :
{"cookie":{"name":"JSESSIONID","secure":false,"value":":1755905sm","path":"/","class":"org.openqa.selenium.Cookie","hCode":1737295111}}
}
T 2014-02-13 12:19:54:555 IECommandExecutor.cpp(162) Entering
IECommandExecutor::OnExecCommand
T 2014-02-13 12:19:54:555 IECommandExecutor.cpp(453) Entering
IECommandExecutor::DispatchCommand
T 2014-02-13 12:19:54:555 IECommandExecutor.cpp(569) Entering
IECommandExecutor::GetCurrentBrowser
T 2014-02-13 12:19:54:556 IECommandExecutor.cpp(575) Entering
IECommandExecutor::GetManagedBrowser
T 2014-02-13 12:19:54:556 IECommandExecutor.cpp(525) Entering
IECommandExecutor::IsAlertActive
T 2014-02-13 12:19:54:556 Browser.cpp(631) Entering
Browser::GetActiveDialogWindowHandle
T 2014-02-13 12:19:54:556 Browser.cpp(175) Entering Browser::GetWindowHandle
D 2014-02-13 12:19:54:556 IECommandExecutor.cpp(539) No alert handle is
found
T 2014-02-13 12:19:54:556 IECommandExecutor.cpp(569) Entering
IECommandExecutor::GetCurrentBrowser
T 2014-02-13 12:19:54:556 IECommandExecutor.cpp(575) Entering
IECommandExecutor::GetManagedBrowser
T 2014-02-13 12:19:54:556 DocumentHost.cpp(235) Entering
DocumentHost::AddCookie
T 2014-02-13 12:19:54:556 Browser.cpp(95) Entering Browser::GetDocument
I 2014-02-13 12:19:54:556 Browser.cpp(99) No child frame focus. Focus is on
top-level frame
T 2014-02-13 12:19:54:556 IESession.cpp(208) Beginning wait for response
length to be not zero
T 2014-02-13 12:19:54:561 Browser.cpp(557) Entering
Browser::GetDocumentFromWindow
T 2014-02-13 12:19:54:564 DocumentHost.cpp(292) Entering
DocumentHost::IsHtmlPage
W 2014-02-13 12:19:54:564 DocumentHost.cpp(296) Unable to get mime type for
document, call to IHTMLDocument2::get_mimeType failed
W 2014-02-13 12:19:54:564 DocumentHost.cpp(248) Unable to add cookie,
document does not appear to be an HTML page
T 2014-02-13 12:19:54:564 response.cc(68) Entering
Response::SetErrorResponse
W 2014-02-13 12:19:54:564 response.cc(69) Error response has status code 16
and message 'Unable to add cookie to page' message
T 2014-02-13 12:19:54:564 IECommandExecutor.cpp(569) Entering
IECommandExecutor::GetCurrentBrowser
T 2014-02-13 12:19:54:564 IECommandExecutor.cpp(575) Entering
IECommandExecutor::GetManagedBrowser
T 2014-02-13 12:19:54:565 response.cc(43) Entering Response::Serialize
T 2014-02-13 12:19:54:566 IESession.cpp(217) Found non-zero response length
T 2014-02-13 12:19:54:566 IECommandExecutor.cpp(185) Entering
IECommandExecutor::OnGetResponse
T 2014-02-13 12:19:54:566 IECommandExecutor.cpp(290) Entering
IECommandExecutor::OnIsSessionValid
D 2014-02-13 12:19:54:566 server.cc(308) Response:
{"sessionId":"912c7d96-669e-47d6-b10d-66aae627f1ff","status":16,"value":{"message":"Unable
to add cookie to page"}}
T 2014-02-13 12:19:54:566 server.cc(359) Entering
Server::SendResponseToClient
T 2014-02-13 12:19:54:566 response.cc(32) Entering Response::Deserialize
T 2014-02-13 12:19:54:566 server.cc(451) Entering
Server::SendHttpInternalError