From 395426b693132fa016e05eae3c84e1cf823fc19d Mon Sep 17 00:00:00 2001 From: Aditya Samantaray Date: Fri, 24 Jun 2022 10:51:54 +0530 Subject: [PATCH] chore: create page object from context --- playwright-test/fixtures.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/playwright-test/fixtures.js b/playwright-test/fixtures.js index 1be73f3..de883c3 100644 --- a/playwright-test/fixtures.js +++ b/playwright-test/fixtures.js @@ -56,7 +56,8 @@ exports.test = base.test.extend({ `wss://cdp.browserstack.com/playwright?caps=` + `${encodeURIComponent(JSON.stringify(caps))}`, }); - const vPage = await vBrowser.newPage(testInfo.project.use); + const vContext = await vBrowser.newContext(testInfo.project.use); + const vPage = await vContext.newPage(); await use(vPage); const testResult = { action: 'setSessionStatus',