How to explicitly add a cookie in Watir?
Posted
by Sands
on Stack Overflow
See other posts from Stack Overflow
or by Sands
Published on 2010-05-12T00:25:36Z
Indexed on
2010/05/12
0:34 UTC
Read the original article
Hit count: 282
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?
© Stack Overflow or respective owner