watir/cookiemanager.rb in watir-1.4.1 vs watir/cookiemanager.rb in watir-1.5.2

- old
+ new

@@ -1,5 +1,8 @@ + require 'find' +module Watir + module CookieManager class Dir def Dir.visit(dir = '.', files_first = false, &block) if files_first paths = [] @@ -25,22 +28,19 @@ end end end end -module Watir - module CookieManager - class WatirHelper #taken from shlObj.h used in win32 SHGetSpecialFolderLocation #define CSIDL_INTERNET_CACHE 0x0020 #define CSIDL_COOKIES 0x0021 #define CSIDL_HISTORY 0x0022 COOKIES = 0x0021 INTERNET_CACHE = 0x0020 def WatirHelper.getSpecialFolderLocation(specFolderName) - shell = WIN32OLE.new("Shell.Application") + shell = WIN32OLE.new('Shell.Application') folder = shell.Namespace(specFolderName) folderItem = folder.Self folderPath = folderItem.Path end def WatirHelper.deleteSpecialFolderContents(specFolderName) \ No newline at end of file