Hi Bach Le, as far as I know Your assumption (evry IE instance uses the same directory for temp files (I don´t the exact path in english because I use a german windows, but it should be s.th. like "c:\documents and settings\...")) is right. So why don´t You just delete the content of this directory at the beginning of every test case?
Regards, Christian Bach Le schrieb: > 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 > _______________________________________________ > Wtr-general mailing list > [email protected] > http://rubyforge.org/mailman/listinfo/wtr-general > > _______________________________________________ Wtr-general mailing list [email protected] http://rubyforge.org/mailman/listinfo/wtr-general
