0

I recently used the Mozmill addon/tool do some UI automation. This has worked really well so far, except when I'm trying to set and then read some cookies. When I use Mozmill to set cookies, I don't seem to get the traditional javascript cookie behavior, i.e. I can set document.cookie as often as I want, but I always get the last value set when I read from the cookie object. Here is an example:

controller.window.document.cookie = "foo=bar";
controller.window.document.cookie = "me=too";
controller.window.alert("Cookie: " + controller.window.document.cookie); //"Cookie: me=too"

Perhaps I don't understand how cookies work in javascript or perhaps they don't work the way I assume inside Mozmill. Mozmill documentation and google searches didn't yield any good answers. Thanks in advance for any help.

brandizzi
  • 26,083
  • 8
  • 103
  • 158
John Tabs
  • 363
  • 1
  • 3
  • 10

1 Answers1

0

I would try looking at Selenium.

Its designed for cross browser UI testing and is a more mature project. Mozmill is currently being used to make sure that firefox itself (and other applications based on mozilla) are working properly.

tallowen
  • 4,198
  • 7
  • 27
  • 35