Hi Gary, This will grab the cookies and put them into an array:
require 'watir' include Watir ie = IE.start('http://www.yahoo.com') arr = ie.document.cookie.split(';') # multiple cookies are separated by ;s arr.each {|a| puts a.to_s} -Charley On 4/17/07, Gary <[EMAIL PROTECTED] > wrote:
I am somewhat new to watir, and I am trying to figure out how to read and assert the value(s) of multiple cookies that are set by our software. Is this even possible with watir? I have seen some references to cookie manager, but it seems to be unsupported and generally unused. Some snippets of code or examples would really come in handy. Thanks in advance, lokispeak _______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general
_______________________________________________ Wtr-general mailing list Wtr-general@rubyforge.org http://rubyforge.org/mailman/listinfo/wtr-general