[Wtr-general] Managing the Cookie Space with Watir
Bach Le
forum-watir-users at openqa.org
Fri Jan 5 20:18:08 EST 2007
I haven't had much time recently to work with watir but I have come across a problem I have not been able to figure out.
Here's an example of my problem:
1. I go to a web store
2. I place an item in the shopping cart
3. I finish the script and exit
4. When i run it again, the item may already be in the shopping cart and break the assumption that I have an empty shopping cart
I was wondering if anyone has come up with a solution to this problem. Ideally, IE should delete all cookies written during the session so that IE can start up new again when I run the script again otherwise the test will fail.
I read this page (http://rubyforge.org/pipermail/wtr-general/2005-March/001276.html) but I dont think the cookie spaces between the opened IE instances are separate. As far as I know, they all write to the same temporary internet files so cookies are shared between instances. Can anyone shed some light on this? Thanks.
---------------------------------------------------------------------
Posted via Jive Forums
http://forums.openqa.org/thread.jspa?threadID=6023&messageID=16874#16874
More information about the Wtr-general
mailing list