question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

[REGRESSION]: _videostarted event not fired in 1.6.2 but does in 1.4.0

See original GitHub issue

Context:

Code Snippet

(using exact code from release notes) https://github.com/microsoft/playwright/releases/tag/v1.4.0

const fs = require('fs');
const { chromium } = require('playwright');

(async () => {
  const browser = await chromium.launch({
    _videosPath: __dirname  //  save videos here.
  });
  const context = await browser.newContext({
    _recordVideos: { width: 1024, height: 768 },  // downscale
  });
  const page = await context.newPage();
  const video = await page.waitForEvent('_videostarted');
  await page.goto('https://github.com/microsoft/playwright');
  // ... perform actions
  await page.close();
  fs.renameSync(await video.path(), 'video.webm');
  await browser.close();
})();

Describe the bug

The _videostarted event fires in 1.4.0 but does not in 1.6.2 with the same code snippet. Attached video shows both happy path and sad path

The exact error message from 1.6.2 is:

Timeout while waiting for event "_videostarted"

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
chrisjsimpsoncommented, Dec 17, 2020

Thanks @aslushnikov 🙏

I’ve also since found the helpful test which you committed to very helpful as example code: https://github.com/microsoft/playwright/blob/1c39689dd6e8b163ed77114f7aa40fac0063c38b/packages/installation-tests/screencast.js#L44

I’ll update with further example, thank you for your help both.

1reaction
mxschmittcommented, Dec 11, 2020
Read more comments on GitHub >

github_iconTop Results From Across the Web

Chapter 7: Correlation and Simple Linear Regression
When two variables have no relationship, there is no straight-line relationship or non-linear relationship. When one variable changes, it does not influence the ......
Read more >
15.1 - Logistic Regression | STAT 501
We will investigate ways of dealing with these in the binary logistic regression setting here. There is some discussion of the nominal and...
Read more >
Modelling Binary Outcomes
This illustrates one of the problems with using a linear model for a dichotomous outcome: the outcome variable Y is clearly not normally ......
Read more >
Chapter 8. Regression Basics - BC Open Textbooks
Because this type of regression model does not include many relevant factors and assumes only a linear relationship, it is known as a...
Read more >
Poisson Regression | R Data Analysis Examples - OARC Stats
Poisson regression is used to model count variables. ... In particular, it does not cover data cleaning and checking, verification of assumptions, ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found