Class: Selenium::WebDriver::HTML5::SessionStorage
Relationships & Source Files | |
Super Chains via Extension / Inclusion / Inheritance | |
Instance Chain:
self,
SharedWebStorage ,
Enumerable,
Enumerable
|
|
Inherits: | Object |
Defined in: | rb/lib/selenium/webdriver/common/html5/session_storage.rb |
Class Method Summary
- .new(bridge) ⇒ SessionStorage constructor Internal use only Internal use only
Instance Attribute Summary
SharedWebStorage
- Included
Instance Method Summary
SharedWebStorage
- Included
#each, #fetch, | |
#has_key? | Alias for SharedWebStorage#key?. |
#key?, | |
#member? | Alias for SharedWebStorage#key?. |
Constructor Details
.new(bridge) ⇒ SessionStorage
This method is for internal use only.
# File 'rb/lib/selenium/webdriver/common/html5/session_storage.rb', line 55
def initialize(bridge) @bridge = bridge end
Instance Method Details
#[](key)
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/html5/session_storage.rb', line 27
def [](key) @bridge.session_storage_item key end
#[]=(key, value)
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/html5/session_storage.rb', line 31
def []=(key, value) @bridge.session_storage_item key, value end
#clear
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/html5/session_storage.rb', line 39
def clear @bridge.clear_session_storage end
#delete(key)
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/html5/session_storage.rb', line 35
def delete(key) @bridge.remove_session_storage_item key end
#keys
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/html5/session_storage.rb', line 47
def keys @bridge.session_storage_keys.reverse end
#size
[ GitHub ]# File 'rb/lib/selenium/webdriver/common/html5/session_storage.rb', line 43
def size @bridge.session_storage_size end