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.

[Question] Video and Trace

See original GitHub issue

Hi guys! I am starting with Playwright 1.16.3 , and I am trying to use the Video Recording and Trace features, however, for some reason, I cant make them work. I could not find any video saved after the execution and the Trace just shows a blank page. This is the playwright.config.ts I am using on my project:

import { PlaywrightTestConfig } from '@playwright/test';
const config: PlaywrightTestConfig = {
  use: {
    video: 'on',
    trace: 'on'
  },
  reporter: [ ['html', { outputFolder: 'test-results', outputFile: 'results.html' }]  ],
  timeout: 120000
};
export default config;

The commands I have tried are:

npx playwright test --reporter=html

and

npx playwright test

After that, I am running npx playwright show-report test-results after executing only 1 test, it passed, it opens the report. I could see there is a trace at the end of the report, but it appears to be blank when opening. In terms of the video, no file has been generated.

I could see on the project the test-results folder with a trace.zip inside.

Is there something I am missing or doing wrong in there ?

The test only launches the browser and navigate and login to a page.

Thanks a lot

trace trace2

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:12 (5 by maintainers)

github_iconTop GitHub Comments

1reaction
dgozmancommented, Nov 22, 2021

@imartinflores In the config you’ve shared I still see ['html', { outputFolder: 'test-results' }]. Using test-results is not supported, please put any other directory there (or just omit it to use default playwright-report). This way you’ll get both videos and traces.

0reactions
imartinflorescommented, Nov 22, 2021

@dgozman oh alright, may be that, so when launching the browser I was calling both, a browser.newContext() and a context.newPage() when opening a new tab (Im trying now a wrapper for dynamics). Setting the options on that context() I am calling is working fine.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Video Question Answering - Papers With Code
Video Question Answering (VideoQA) aims to answer natural language questions ... These leaderboards are used to track progress in Video Question Answering ...
Read more >
8 Good Web Tools to Create Video Quizzes for Your Class
They can also be used for leveraging digital videos for learning by adding ... and add questions at any point in the video...
Read more >
Add a video to a question - Microsoft Support
Note: You can only add videos hosted on Microsoft Stream or YouTube to a form or quiz question. You'll see an error message...
Read more >
Frequently asked questions - VideoAsk
Record a video straight from your phone or computer, share the link, then wait for the responses to roll in and get the...
Read more >
Solved 2. Trace out (or video for me) a description of what
Question : 2. Trace out (or video for me) a description of what is happening in the increaseSize() method of the CD Collection...
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