views:

74

answers:

0

I need to set a cookie in IE to execute some specific flow. I tried using the following code

ieb = Watir::IE.new

ieb.document.cookie="rememberme=foobar;Path=/; Domain=sometestdomain.com"

# Bring up browser and do bunch of stuff

However, I see that when the IE comes up, rememberme cookie is not set. Am I doing something wrong here?