-
Notifications
You must be signed in to change notification settings - Fork 7
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When using recorder, I get - TypeError: Cannot read property 'onmessage' of undefined #2
Comments
It appears that The Downgrading your version of This worked for me: npm install [email protected] I hope this helps. @domderen Any plans to support latest |
Hi Derrick, I tried with: Are you sure the above version combination is correct? Many Thanks, |
Hi Rahul. Here is the code and terminal output on my end. What happens when you run your shell's equivalent of those commands? Hopefully this is helpful. const { chromium } = require('playwright');
const { default: initializeRecorder } = require('playwright-session');
const chalk = require('chalk');
(async () => {
const browser = await chromium.launch({ headless: false });
try {
const { page, context } = await initializeRecorder(browser);
console.log(chalk.greenBright.italic('We successfully initialized'));
page.goto('http://www.github.com');
} catch (err) {
console.error(
chalk.redBright.underline('We caught the `onmessage` error.')
);
console.error(err);
process.exit(1);
return;
}
})(); Failed Successful |
Hey everyone, sorry for a long time without a response. Playwright now has an implementation WIP on something very similar to Playwright-Session. Out there it is called a tracer, and consists of a browser context parameter for recording I also created this issue in Playwright to consider creating a hosted version of the trace-viewer app, similar to what Playwright-Session is offering, and it would be great to know your feedback. microsoft/playwright#4967 Thanks! |
I am using folio the playwright test runner, and inside a before all loop I run the below 2 lines of code:
browser = await chromium.launch(config.launchOptions);
page = (await initializeRecorder(browser, 'vuetify-session-events')).page;
The stacktrace I get is:
TypeError: Cannot read property 'onmessage' of undefined
Can I get some help to debug.fix this issue please?
Thanks
The text was updated successfully, but these errors were encountered: