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

    Interface ObjectPageFixture

    Fixture interface for Object Page testing operations.

    Provides a high-level facade for Object Page interactions within a Playwright test fixture context. Each method maps to a corresponding function in object-page.ts.

    test('edit product', async ({ objectPage }) => {
    await objectPage.clickEdit();
    const title = await objectPage.getHeaderTitle();
    expect(title).toBe('Product Details');
    });
    interface ObjectPageFixture {
        clickButton: (buttonName: string) => Promise<void>;
        clickEdit: () => Promise<void>;
        clickSave: () => Promise<void>;
        getHeaderTitle: () => Promise<string>;
        getSectionData: (
            sectionTitleOrId: string,
        ) => Promise<Readonly<Record<string, unknown>>>;
        getSections: () => Promise<readonly { id: string; title: string }[]>;
        isInEditMode: () => Promise<boolean>;
        navigateToSection: (sectionTitleOrId: string) => Promise<void>;
    }
    Index

    Properties

    clickButton: (buttonName: string) => Promise<void>

    Clicks a button by its display text.

    clickEdit: () => Promise<void>

    Clicks the Edit button on the Object Page footer.

    clickSave: () => Promise<void>

    Clicks the Save button on the Object Page footer.

    getHeaderTitle: () => Promise<string>

    Returns the Object Page header title text.

    getSectionData: (
        sectionTitleOrId: string,
    ) => Promise<Readonly<Record<string, unknown>>>

    Returns all field key-value pairs from a section.

    getSections: () => Promise<readonly { id: string; title: string }[]>

    Returns all sections with their title and ID.

    isInEditMode: () => Promise<boolean>

    Returns whether the Object Page is in edit mode.

    navigateToSection: (sectionTitleOrId: string) => Promise<void>

    Navigates to a section by its title or ID.