sskodje / ScreenRecorderLib

A .NET library for screen recording in Windows, using native Microsoft Media Foundation for realtime encoding to h264 video or PNG images.
MIT License
414 stars 94 forks source link

Integrating in Selenium: Screen Recording when running headless #180

Closed juneremonte closed 2 years ago

juneremonte commented 2 years ago

It's not issue but rather a question: I am trying to implement this very useful tool in my selenium project is there a way to still record my test eve if I am running in headless mode? Thanks

sskodje commented 2 years ago

No, unfortunately it needs to run in a window to be able to record it. To my knowledge, the best you can do it to get the headless browser to send you screenshots of the rendered page.