Praman — Agent-First SAP UI5 Test Automation Plugin - v1.3.4
    Preparing search index...

    Interface WebStorageFixture

    The webStorage fixture API exposed to test bodies.

    Provides typed access to both localStorage and sessionStorage via the Playwright 1.61+ Web Storage API. Feature-gated — throws PramanError with ErrorCode.ERR_COMPAT_FEATURE_UNAVAILABLE when the installed Playwright version is older than 1.61.

    webStorage.fixture

    import { test } from 'playwright-praman';

    test('check persisted theme', async ({ webStorage }) => {
    await webStorage.localStorage.seed({ theme: 'dark' });
    await page.goto('/');
    expect(await webStorage.localStorage.getItem('theme')).toBe('dark');
    });
    interface WebStorageFixture {
        localStorage: WebStorageHelper;
        sessionStorage: WebStorageHelper;
    }
    Index

    Properties

    localStorage: WebStorageHelper

    Typed helper for localStorage.

    sessionStorage: WebStorageHelper

    Typed helper for sessionStorage.