class Selenium::WebStorageManager
- Selenium::WebStorageManager
- Reference
- Object
Defined in:
selenium/web_storage_manager.crConstructors
Instance Method Summary
-
#clear
Clear all items from the Storage
- #document_manager : DocumentManager
-
#item(name : String, value = nil) : String | Nil
Retrieve and insert item from/into the Storage.
-
#keys : JSON::Any
Retrieve the list of keys from the Storage
-
#remove(name : String)
Remove the item specified in
name
from the Storage -
#size : Int
Retrieve the number of items in the Storage
Macro Summary
Constructor Detail
def self.new(document_manager : Selenium::DocumentManager, storage : StorageType = StorageType::LocalStorage)
#
Instance Method Detail
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
.