class Selenium::WebStorageManager

Defined in:

selenium/web_storage_manager.cr

Constructors

Instance Method Summary

Macro Summary

Constructor Detail

def self.new(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage) #

[View source]

Instance Method Detail

def clear #

Clear all items from the Storage


[View source]
def document_manager : DocumentManager #

[View source]
def item(name : String, value = nil) : String | Nil #

Retrieve and insert item from/into the Storage. If no value is given, it will return the item specified in name. For a given value, it will be added or updated for the item specified in name.


[View source]
def keys : JSON::Any #

Retrieve the list of keys from the Storage


[View source]
def remove(name : String) #

Remove the item specified in name from the Storage


[View source]
def size : Int #

Retrieve the number of items in the Storage


[View source]

Macro Detail

macro method_missing(call) #

[View source]