blueimp / wdio

Docker setup for WebdriverIO with automatic screenshots, image diffing and screen recording support for containerized versions of Chrome and Firefox on Linux, mobile versions of Chrome and Firefox on Android as well as Safari on iOS, Safari on macOS and Edge on Windows.
https://hub.docker.com/r/blueimp/wdio
MIT License
296 stars 51 forks source link

How to screencast a url? #25

Open ariel-frischer opened 2 years ago

ariel-frischer commented 2 years ago

Any examples with screenshots or screencasting? Also does screencasting support recording with an alpha channel? (like to webm or mov format)?

blueimp commented 2 years ago

Yes you can create a screen recording of loading a specific URL. While the project's purpose is to provide a Docker setup for Webdriver.io, it also comes with integration for video recording.

You can enable video recordings in the browser configs. For Firefox it's enabled by default: https://github.com/blueimp/wdio/blob/77b7c9518bc377334ac497e83ce0e7265c682ca9/conf/firefox.js#L18

There's in example in the test specs how to save and diff screenshots.

The package providing the screen recording and diffing integration has more usage examples: https://github.com/blueimp/wdio-screen-commands#usage

There is no support for alpha channel screen recordings.