playwright-video icon indicating copy to clipboard operation
playwright-video copied to clipboard

feature request: include browser level recording rather than page

Open vrknetha opened this issue 4 years ago • 4 comments

I create multiple pages in runtime and close them. It is difficult to add save video every time and moreover they are recorded to different files. Rather than page recording, Can you go up with context or browser recording? Which would record the total execution in a single file?

vrknetha avatar Jun 29 '20 07:06 vrknetha

Hi @vrknetha thanks for your interest in playwright video! @celeryclub generously added the followPopups option to the saveVideo API - does that help?

flaurida avatar Jun 29 '20 13:06 flaurida

Actually it is not a popup. Suppose I do some operations on page1 and I assert these changes in page2. One more use case is, I create a new context1 and do some operations which would impact the current context. I need to call this save video on every page. If it is at context level or browser level. It can save the videos on all pages using that context.

vrknetha avatar Jun 29 '20 16:06 vrknetha

If you use qawolf.register(context) it will save multiple videos, one per page.

jperl avatar Jun 29 '20 17:06 jperl

Sure, let me try that. Thank you

vrknetha avatar Jun 29 '20 17:06 vrknetha