Class: Watir::CookieManager::WatirHelper
- Inherits:
 - 
      Object
      
        
- Object
 - Watir::CookieManager::WatirHelper
 
 
- Defined in:
 - lib/watir/cookiemanager.rb
 
Constant Summary collapse
- COOKIES =
          
taken from shlObj.h used in win32 SHGetSpecialFolderLocation define CSIDL_INTERNET_CACHE 0x0020 define CSIDL_COOKIES 0x0021 define CSIDL_HISTORY 0x0022
 0x0021- INTERNET_CACHE =
 0x0020
Class Method Summary collapse
- .deleteSpecialFolderContents(specFolderName) ⇒ Object
 - .getSpecialFolderLocation(specFolderName) ⇒ Object
 
Class Method Details
.deleteSpecialFolderContents(specFolderName) ⇒ Object
      50 51 52  | 
    
      # File 'lib/watir/cookiemanager.rb', line 50 def WatirHelper.deleteSpecialFolderContents(specFolderName) Dir.rm_rf(self.getSpecialFolderLocation(specFolderName)) end  | 
  
.getSpecialFolderLocation(specFolderName) ⇒ Object
      44 45 46 47 48 49  | 
    
      # File 'lib/watir/cookiemanager.rb', line 44 def WatirHelper.getSpecialFolderLocation(specFolderName) shell = WIN32OLE.new('Shell.Application') folder = shell.Namespace(specFolderName) folderItem = folder.Self folderPath = folderItem.Path end  |