admin管理员组

文章数量:1122846

I'm using playwright with TypeScript:

  // Create a new API context with the retrieved token
  
   apiContext = await request.newContext({
    extraHTTPHeaders: {
      Authorization: `Bearer ${accessToken}`,
      'Content-Type': 'application/json',
    },
  });
});

To solve the problem:

Property 'newContext' does not exist on type 'APIRequestContext'.

本文标签: typescriptProperty 39newContext39 does not exist on type 39APIRequestContext39Stack Overflow