Sha256: 8192546cf3a3ead9268261c644753a80ae7e8f6f8a6e71fae4cedbd3b7d6cf7f

Contents?: true

Size: 711 Bytes

Versions: 66

Compression:

Stored size: 711 Bytes

Contents

module Selenium
  module WebDriver
    module HTML5

      class LocalStorage
        include SharedWebStorage

        #
        # @api private
        #
        def initialize(bridge)
          @bridge = bridge
        end

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

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

        def delete(key)
          @bridge.removeLocalStorageItem key
        end

        def clear
          @bridge.clearLocalStorage
        end

        def size
          @bridge.getLocalStorageSize
        end

        def keys
          @bridge.getLocalStorageKeys.reverse
        end
      end

    end
  end
end

Version data entries

66 entries across 66 versions & 4 rubygems

Version Path
selenium-webdriver-2.20.0.rc1 lib/selenium/webdriver/common/html5/local_storage.rb
selenium-webdriver-2.19.0 lib/selenium/webdriver/common/html5/local_storage.rb
selenium-webdriver-2.19.0.rc2 lib/selenium/webdriver/common/html5/local_storage.rb
selenium-webdriver-2.19.0.rc1 lib/selenium/webdriver/common/html5/local_storage.rb
selenium-webdriver-2.18.0 lib/selenium/webdriver/common/html5/local_storage.rb
selenium-webdriver-2.18.0.rc3 lib/selenium/webdriver/common/html5/local_storage.rb