Couldn't set cookie in Chrome

2 posts, 0 answers
  1. Jet
    Jet avatar
    10 posts
    Member since:
    Oct 2012

    Posted 27 Nov 2012 Link to this post

    Hi,
    I have a two test methods as following codes, the TestMethodChrome doesn't work as expected, the cookie couldn't be set, but the same codes work well on FireFox and IE(e.g TestMethodFireFox).  I used Telerik.Testing.Framework.2012.2.1022 for testing.  is it a bug in this build of testing framework?

    Thanks
    Jet
    [TestClass]
       public class MyTest:BaseTest
       {
           [TestMethod]
           public void TestMethodChrome()
           {
               base.Initialize();
               Manager.LaunchNewBrowser(BrowserType.Chrome);
               ActiveBrowser.Cookies.SetCookie(new System.Net.Cookie("mycookie", "myvalue", "/", "www.google.com"));
               ActiveBrowser.NavigateTo("http://www.google.com");
           }
           [TestMethod]
           public void TestMethodFireFox()
           {
               base.Initialize();
               Manager.LaunchNewBrowser(BrowserType.FireFox);
               ActiveBrowser.Cookies.SetCookie(new System.Net.Cookie("mycookie", "myvalue", "/", "www.google.com"));
               ActiveBrowser.NavigateTo("http://www.google.com");
           }
       }
  2. Plamen
    Admin
    Plamen avatar
    8 posts

    Posted 27 Nov 2012 Link to this post

    Hello Jet,

    Thank you for reporting the issue. We had this issue before and it was fixed a long time ago. However it seems that the issue appeared again with the latest version of Google Chrome. I have reopened the bug and you can track its progress and vote for it here: Public URL.
     
    I have also updated your Telerik points for being the first to report this.

    All the best,
    Plamen
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top