Completed
Last Updated: 26 Jan 2015 08:35 by ADMIN
ADMIN
Boyan Boev
Created on: 11 Nov 2014 11:38
Type: Bug Report
0
Cannot set cookies in Chrome
The code which sets/gets cookies works in all browsers except Chrome.

Manager.LaunchNewBrowser();
 
const string url = "www.google.com";
{
    var cookie = new Cookie("foo", "bar", "/", url);
    cookie.Expires = DateTime.MaxValue;
    var ok = ActiveBrowser.Cookies.SetCookie(cookie);
}
 
var c = ActiveBrowser.Cookies.GetCookies("http://www.google.com");
var count = c.Count;
 
Log.WriteLine(count.ToString());
foreach (Cookie cookie in ActiveBrowser.Cookies.GetCookies("http://www.google.com"))
{
    Log.WriteLine(cookie.Name);
}
1 comment
ADMIN
Daniel Djambov
Posted on: 26 Jan 2015 08:34
Telerik: the issue is fixed and solution will be available in our next internal product release planned at the end of Jan 2015. You have to update also the Chrome execution extension to version 2014.2.618.8 , using 'Update extensions now' option as shown here http://docs.telerik.com/teststudio/troubleshooting-guide/browser-inconsistencies-tg/extensions-disabled-in-chrome).