java.lang.Object
net.serenitybdd.screenplay.playwright.questions.StorageValue

public class StorageValue extends Object
Questions about browser storage (localStorage and sessionStorage).
  • Constructor Details

    • StorageValue

      public StorageValue()
  • Method Details

    • fromLocalStorage

      public static net.serenitybdd.screenplay.Question<String> fromLocalStorage(String key)
      Get a value from localStorage.
    • fromSessionStorage

      public static net.serenitybdd.screenplay.Question<String> fromSessionStorage(String key)
      Get a value from sessionStorage.
    • allLocalStorageItems

      public static net.serenitybdd.screenplay.Question<Map<String,String>> allLocalStorageItems()
      Get all items from localStorage as a Map.
    • allSessionStorageItems

      public static net.serenitybdd.screenplay.Question<Map<String,String>> allSessionStorageItems()
      Get all items from sessionStorage as a Map.