playwright icon indicating copy to clipboard operation
playwright copied to clipboard

[Feature] Separate Network logs when working with two contexts

Open Nav-2d opened this issue 2 years ago • 3 comments

Let us know what functionality you'd like to see in Playwright and what your use case is.

Currently, if you are working with two contexts then in the trace file, there is no way to identify which network request is part of which context. Wondering if there is a way to identify that.

Screenshot 2024-01-08 at 2 26 36 PM

Do you think others might benefit from this as well?

Nav-2d avatar Jan 08 '24 22:01 Nav-2d

Yes, would be nice to set up an alias for custom APIRequestContext and BrowserContext. Network tab is hard to work with when using multiple contexts.

vladkrasn avatar Jan 17 '24 08:01 vladkrasn

That will be so handy feature! Generally finding info form different context in test actions, logs or timeline is quite hard - wish to have switch/label/outline to focus traces on given context❤️

pbarhyl avatar Feb 01 '24 10:02 pbarhyl

yes, please implement this! it is really hard to analyse failure when you have multiple contexts

AndriiFrolov avatar Feb 14 '24 10:02 AndriiFrolov