Class: Selenium::WebDriver::HTML5::SessionStorage
- Inherits:
-
Object
- Object
- Selenium::WebDriver::HTML5::SessionStorage
show all
- Includes:
- Enumerable, SharedWebStorage
- Defined in:
- lib/selenium/webdriver/common/html5/session_storage.rb
Instance Method Summary
collapse
#each, #empty?, #fetch, #key?
Constructor Details
This method is part of a private API.
You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of SessionStorage.
56
57
58
|
# File 'lib/selenium/webdriver/common/html5/session_storage.rb', line 56
def initialize(bridge)
@bridge = bridge
end
|
Instance Method Details
#[](key) ⇒ Object
28
29
30
|
# File 'lib/selenium/webdriver/common/html5/session_storage.rb', line 28
def [](key)
@bridge.getSessionStorageItem key
end
|
#[]=(key, value) ⇒ Object
32
33
34
|
# File 'lib/selenium/webdriver/common/html5/session_storage.rb', line 32
def []=(key, value)
@bridge.setSessionStorageItem key, value
end
|
#clear ⇒ Object
40
41
42
|
# File 'lib/selenium/webdriver/common/html5/session_storage.rb', line 40
def clear
@bridge.clearSessionStorage
end
|
#delete(key) ⇒ Object
36
37
38
|
# File 'lib/selenium/webdriver/common/html5/session_storage.rb', line 36
def delete(key)
@bridge.removeSessionStorageItem key
end
|
#keys ⇒ Object
48
49
50
|
# File 'lib/selenium/webdriver/common/html5/session_storage.rb', line 48
def keys
@bridge.getSessionStorageKeys.reverse
end
|
#size ⇒ Object
44
45
46
|
# File 'lib/selenium/webdriver/common/html5/session_storage.rb', line 44
def size
@bridge.getSessionStorageSize
end
|