Playwright: Why I am unable to use any fixture in globalSetup

Viewed 14
I am unable to use any  fixtures inside global setup.Actually the requirement is to check the page status before it triggers execution. SO for that to launch the page I tried to use page fixture provided by playwright but I am getting "page.goto is not a function:
Here is my code snippet:

async function globalSetup(page: Page) { this.page =page; await page.goto("SOME URL") await page.close() The same happens by using browser also.

0 Answers
Related