-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
[Bug]: Snapshots, events and screencast missing from trace (webview2 app) #29578
Comments
Tracing should work with webview2, can you share a repro where it fails? |
I don't get any error message, it's just that snapshots and screencast are missing. I can only see a list of actions. Below is my webView2Test.ts implementation:
... and below is playwright configuration:
|
You can try manually record trace by calling start and stop and see if the traces contain the snapshots. We were not able to reproduce it with provided code. Could you share full repro including the app at pathToMyWebView2, so that we could run it locally? |
I already tried to record manually, but I only called
Though, I'm still wondering why it doesn't work when I set In addition, now I notice that for the snapshots, css is not loaded. If I inspect snapshots, I can see bunch of 'Failed to load resource (404)' errors while screencast shows images with css, as expected. |
This is expected as of today, since there is no integration between WebView2/connectOverCDP and the tracing/test-runner options like trace/video/screenshot. Calling tracing.stop is required as of today. This gives you also more control in order to when you want to start a new trace and when not, since based on the scenario you want to re-start the app or not, perform special cleanup logic etc.
We need a repro in order to look into this. |
It would be valuable to mention this somewhere in trace documentation. Final question - since for WebView2/connectOverCDP apps I have to start/stop the trace manually, is there a way for the trace to be part of the Playwright report? Currently, the trace is saved to the path we specify, but it would be valuable for it to be part of the generated report, so I have everything in one place when calling |
@asinanovic Call |
Thanks! |
Version
1.41.1
Steps to reproduce
I'm running tests for the webview2 app with
trace: 'on'
and trace viewer doesn't display DOM snapshots, events nor it records a screencast. I can only see list of actions.I'm wondering if webview2 apps require some additional setup/configuration for trace viewer?
Expected behavior
Trace viewer displays DOM snapshots, events and it records a screencast.
Actual behavior
Trace viewer doesn't display DOM snapshots, events nor it records a screencast. I can only see list of actions.
Additional context
No response
Environment
The text was updated successfully, but these errors were encountered: