Package: geb.webstorage

## [Groovy] Interface WebStorage

- Represents a web storage type, that is either local or session storage.

- - ### Methods Summary

    Methods
    Type Params | Return Type | Name and description
    --- | --- | ---
    `` | `void` | `clear()` Removes all data from the store.
    `` | `String` | `getAt(String key)` Returns a value stored under the given `key` in the storage.
    `` | `Set<String>` | `keySet()` Returns a set of all keys for which values are stored.
    `` | `void` | `putAt(String key, String value)` Stores the `value` under the the given `key` in the storage.
    `` | `void` | `remove(String key)` Removes the value stored under the given `key`.
    `` | `int` | `size()` Returns the number of keys for which values are stored.

- - ### Method Detail

    - #### void clear()

      Removes all data from the store.

    - #### String getAt(String key)

      Returns a value stored under the given `key` in the storage. Adds support for using subscript operator for reading values.

    - #### Set<String> keySet()

      Returns a set of all keys for which values are stored.

    - #### void putAt(String key, String value)

      Stores the `value` under the the given `key` in the storage. Adds support for using subscript operator for writing values values.

    - #### void remove(String key)

      Removes the value stored under the given `key`.

    - #### int size()

      Returns the number of keys for which values are stored.