123456789_123456789_123456789_123456789_123456789_

Class: Selenium::WebDriver::HTML5::LocalStorage

Relationships & Source Files
Super Chains via Extension / Inclusion / Inheritance
Instance Chain:
self, SharedWebStorage, Enumerable
Inherits: Object
Defined in: rb/lib/selenium/webdriver/common/html5/local_storage.rb

Class Method Summary

Instance Attribute Summary

Instance Method Summary

Constructor Details

.new(bridge) ⇒ LocalStorage

This method is for internal use only.
[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/html5/local_storage.rb', line 29

def initialize(bridge)
  @bridge = bridge
end

Instance Method Details

#[](key)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/html5/local_storage.rb', line 33

def [](key)
  @bridge.local_storage_item key
end

#[]=(key, value)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/html5/local_storage.rb', line 37

def []=(key, value)
  @bridge.local_storage_item key, value
end

#clear

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/html5/local_storage.rb', line 45

def clear
  @bridge.clear_local_storage
end

#delete(key)

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/html5/local_storage.rb', line 41

def delete(key)
  @bridge.remove_local_storage_item key
end

#keys

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/html5/local_storage.rb', line 53

def keys
  @bridge.local_storage_keys.reverse
end

#size

[ GitHub ]

  
# File 'rb/lib/selenium/webdriver/common/html5/local_storage.rb', line 49

def size
  @bridge.local_storage_size
end