Skip to content

[Bug]: Video duration is different than real duration of the run (chromium) #9611

@qwark97

Description

@qwark97

Playwright version

1.15.3

Operating system

Linux

What browsers are you seeing the problem on?

Chromium

Other information

Repo to present bug:
https://github.com/qwark97/video_length_bug

Given command in the repo takes ~2min

Bug occurs also outside the docker image

What happened? / Describe the bug

To be honest I'm not sure if this is a bug or an expected behavior but videos recorded with playwright (by passing record_video_dir) at Chromium, at both headless/headed mode, with and without slow_mo parameter are longer than "real" execution time. For example, one of the executions of the test (from the example repo) took ~18s while recorded video took 36s (such 2x ratio is just a coincidence)

I haven't noticed such behavior with other browsers but on the other hand the same test took at them quite longer time (I don't know whether it is connected)

So my question is: if this is a bug? And if not, am I able to do anything to make execution and the recorded video the same duration?

Code snippet to reproduce your bug

No response

Relevant log output

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions