It's not part of SafariWatir, but rather the fileutils library.
You're manually deleting the information in the directory where
cookies are stored. Safari may store them in another location, but
the principle is the same:
require 'fileutils'
$cookieDir = "C:\\Documents and Settings\\#{ENV['USERNAME']}\
\Cookies" #cookie location
FileUtils.rm_rf $cookieDir #delete cookies
Thanks,
Adam
On Feb 5, 10:33 am, QAguy <[email protected]> wrote:
> Is there a function/command in safariwatir I can use to clear out the
> browsers cookies/cache prior to a test running? Couldn't find anything
> when I searched the google group or the wiki.
>
> Thank you
--
You received this message because you are subscribed to the Google Groups
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines:
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/watir-general