This is a migrated thread and some comments may be shown as answers.

Couldn't set cookie in Chrome

1 Answer 36 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Jet
Top achievements
Rank 1
Jet asked on 27 Nov 2012, 08:00 AM
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");
       }
   }

1 Answer, 1 is accepted

Sort by
0
Plamen
Telerik team
answered on 27 Nov 2012, 10:35 AM
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
Tags
General Discussions
Asked by
Jet
Top achievements
Rank 1
Answers by
Plamen
Telerik team
Share this question
or