123456789_123456789_123456789_123456789_123456789_

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

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(bridge) ⇒ SessionStorage

This method is for internal use only.
[ GitHub ]

  
# 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