donobu
Version:
Create browser automations with an LLM agent and replay them as Playwright scripts.
26 lines • 772 B
TypeScript
/**
* This type is expected to match the data returned by the Playwright `BrowserContext.storageState()` method.
*/
export type BrowserStorageState = {
readonly cookies: Array<{
readonly name: string;
readonly value: string;
readonly domain: string;
readonly path: string;
/**
* Unix time in seconds.
*/
readonly expires: number;
readonly httpOnly: boolean;
readonly secure: boolean;
readonly sameSite: 'Strict' | 'Lax' | 'None';
}>;
readonly origins: Array<{
readonly origin: string;
readonly localStorage: Array<{
readonly name: string;
readonly value: string;
}>;
}>;
};
//# sourceMappingURL=BrowserState.d.ts.map