Unable to delete session cookies

2 posts, 0 answers
  1. clee
    clee avatar
    2 posts
    Member since:
    Aug 2012

    Posted 14 Aug 2012 Link to this post

    Hi, 

    We're currently trying to speed up our tests by not launching a new browser with each test we run. Instead, we're keeping the active browser open and deleting the cache and cookies to restore the browser to its initial state (e.g. making sure the user is no longer logged in).  

    So far we've tried calling Cookies.DeleteCookies() as well as ClearCache(BrowserCacheType.Cookies), but neither seem to be deleting the session cookies in IE8.  The current behavior I'm seeing is that after calling these methods and re-navigating to our site, the user still remains logged in.  

    Does anyone know the solution to this? Thanks.
  2. Byron
    Admin
    Byron avatar
    184 posts

    Posted 17 Aug 2012 Link to this post

    Hello Claire,

    I recommend combining the clear cookies step with a ClearCache(History) step, since the browser could be reloading cached content. If this does not resolve your issue, we will need more information about your test scenario. Please provide us with a copy of your test and access to your application. If it is not possible to grant us access to your application, please take a Fiddler trace and attach it to a support ticket in a zip file. If you are unfamiliar with how to do that please refer to this short video. You can download the Fiddler application from here. A Jing video demonstrating the issue may also help us to better understand what is happening.

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