You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// @ts-checkconstplaywright=require("playwright");(async()=>{constbrowser=awaitplaywright.chromium.launch();constcontext=awaitbrowser.newContext();constpage=awaitcontext.newPage();consterrorLogs=[]page.on("console",(message)=>{if(message.type()==="error"){errorLogs.push(message.text())}})awaitpage.evaluate(()=>{console.error("hello from the browser")})console.log(errorLogs)awaitbrowser.close();})();
There is also the pageError event which can be used to catch unhandled exceptions which get thrown inside the browser:
I tried to use this setting : https://playwright.dev/docs/api/class-logger?_highlight=log#loggerisenabledname-severity
But it didn't succeed.
Note: we're using QAWolf 1.3.3, with Playwright 1.8.0
The text was updated successfully, but these errors were encountered: