Docs · API reference · Motus.Abstractions
StorageState Class#
Represents the complete storage state of a browser context including cookies and local storage.
public sealed record StorageState : System.IEquatable<Motus.Abstractions.StorageState>
Inheritance System.Object → StorageState
Implements System.IEquatable<StorageState>
Constructors#
StorageState(IReadOnlyList<Cookie>, IReadOnlyList<OriginStorage>) Constructor#
Represents the complete storage state of a browser context including cookies and local storage.
public StorageState(System.Collections.Generic.IReadOnlyList<Motus.Abstractions.Cookie> Cookies, System.Collections.Generic.IReadOnlyList<Motus.Abstractions.OriginStorage> Origins);
Parameters#
Cookies System.Collections.Generic.IReadOnlyList<Cookie>
The cookies in the storage state.
Origins System.Collections.Generic.IReadOnlyList<OriginStorage>
The local storage entries grouped by origin.
Properties#
Cookies Property#
The cookies in the storage state.
public System.Collections.Generic.IReadOnlyList<Motus.Abstractions.Cookie> Cookies { get; init; }
Property Value#
System.Collections.Generic.IReadOnlyList<Cookie>
Origins Property#
The local storage entries grouped by origin.
public System.Collections.Generic.IReadOnlyList<Motus.Abstractions.OriginStorage> Origins { get; init; }