views:

334

answers:

0

I am just starting with WatiN and I want to make sure any cookies i have from previous sessions on the site are cleared off before I run the tests. The clear cookies command results in an exception that seems to be at the COM level.

Unhandled Exception: System.ArgumentException: Value does not fall within the expected range.
at System.Runtime.InteropServices.Marshal.ThrowExceptionForHRInternal(Int32 errorCode, IntPtr errorInfo) at System.Runtime.InteropServices.Marshal.ThrowExceptionForHR(Int32 errorCode) at WatiN.Core.WinInet.ThrowExceptionForLastWin32Error() at WatiN.Core.WinInet.ForEachCacheEntry(Int64 groupId, String searchPattern, Int32 flags, CacheEntryAction action) at WatiN.Core.WinInet.ClearCookiesCommand.ClearCookiesInCacheGroup(Int64 groupId) at WatiN.Core.WinInet.ForEachCacheGroup(CacheGroupAction action) at WatiN.Core.WinInet.ClearCookiesCommand.Run() at WatiN.Core.WinInet.ClearCookies(String url) at WatiN.Core.IE.ClearCookies(String url)

Getting on to the SourceForge mailing list is turning into a pain and I think there may be more users paying attention to this anyway.