Class BrowserContext.StorageStateOptions

java.lang.Object
com.microsoft.playwright.BrowserContext.StorageStateOptions
Enclosing interface:
BrowserContext

public static class BrowserContext.StorageStateOptions extends Object
  • Field Details

    • path

      public Path path
      The file path to save the storage state to. If path is a relative path, then it is resolved relative to current working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.
  • Constructor Details

    • StorageStateOptions

      public StorageStateOptions()
  • Method Details

    • setPath

      The file path to save the storage state to. If path is a relative path, then it is resolved relative to current working directory. If no path is provided, storage state is still returned, but won't be saved to the disk.