Open
Description
When using the code specified in fixtures.js, this line fails with the following error:
page.evaluate: Browser has been closed
I'm running with "@playwright/test": "~1.20.2"
. As a workaround, I'm making a direct PUT call to BrowserStack as such:
if (testInfo.status === 'failed') {
await axios({
method: 'put',
url: `https://api.browserstack.com/automate/sessions/${sessionId}.json`,
data: payloadArguments,
auth: {
username: process.env.BROWSERSTACK_USERNAME,
password: process.env.BROWSERSTACK_ACCESS_KEY
},
});
}
else {
await newPage.evaluate(() => {}, `browserstack_executor: ${browserStackCommandPayloadString}`);
}
Is there something I need to do to prevent the browser from closing?
Metadata
Metadata
Assignees
Labels
No labels