Skip to content

Error: Playwright page not initialized, it must be done by using {page} in the test function parameter. #21246

@JeevanHB

Description

@JeevanHB

Error: Playwright page not initialized, it must be done by using {page} in the test function parameter.

at ....\playwright-utils.ts:11

9 | export function getPage(): Page {
10 | if (!currentPage) {

11 | throw new Error('Playwright page not initialized, it must be done by using {page} in the test function parameter.');
| ^
12 | }
13 | return currentPage;
14 | }

We are observing this issue, Please let us to resolve this issue.
image

We have import all the required utils from playwright but still we are facing issue.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions