Class LocalStorage

java.lang.Object
com.codeborne.selenide.LocalStorage
All Implemented Interfaces:
Conditional<LocalStorage>

@ParametersAreNonnullByDefault public class LocalStorage extends Object implements Conditional<LocalStorage>
  • Method Details

    • object

      @Nonnull @CheckReturnValue public LocalStorage object()
      Specified by:
      object in interface Conditional<LocalStorage>
      Returns:
      object under test
    • driver

      @Nonnull @CheckReturnValue public Driver driver()
    • containsItem

      @CheckReturnValue public boolean containsItem(String key)
    • getItem

      @CheckReturnValue @Nullable public String getItem(String key)
    • setItem

      public void setItem(String key, String value)
    • removeItem

      public void removeItem(String key)
    • clear

      public void clear()
    • size

      @CheckReturnValue public int size()
    • isEmpty

      @CheckReturnValue public boolean isEmpty()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getItems

      @CheckReturnValue @Nonnull public Map<String,String> getItems()
      Returns:
      all items in this storage
      Since:
      5.23.0