You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[BUG] Tracing does not work with playwright.request.newcontext() #137
AFAICT, it also doesn't work with Browser.new_context (e.g., using the browser fixture to create a context with a different scale factor browser.new_context(device_scale_factor=2)); not sure if that ends up using the same APIRequestContext in the end.
I've found the same issue, if this is not by design.
It appears that we should use fixture new_context, so tracing/videos/screenshots are taken automatically if enabled but new_context is a function fixture and not session.
Activity
QuLogic commentedon Nov 4, 2022
AFAICT, it also doesn't work with
Browser.new_context(e.g., using thebrowserfixture to create a context with a different scale factorbrowser.new_context(device_scale_factor=2)); not sure if that ends up using the sameAPIRequestContextin the end.Edit: Ah, maybe what I'm seeing is #99.
guandalf commentedon Feb 20, 2024
And this is particularly problematic as the only way to test chrome extensions is by creating a new context as per https://playwright.dev/python/docs/chrome-extensions
Please help :)
guandalf commentedon Feb 20, 2024
In fact I just reimplemented my fixture copying it from
playwright-pytest/pytest_playwright/pytest_playwright.py
Line 232 in fb2e7c7
ltsuda commentedon Oct 9, 2024
I've found the same issue, if this is not by design.
It appears that we should use fixture
new_context, so tracing/videos/screenshots are taken automatically if enabled butnew_contextis afunctionfixture and notsession.#232
#216
shisrafilov commentedon Oct 24, 2024
The issue is still there
feat: record traces of playwright.request API contexts
feat: record traces of playwright.request API contexts (#333)