Selenium: record video of every test
authorŽeljko Filipin <zeljko.filipin@gmail.com>
Fri, 30 Mar 2018 16:42:04 +0000 (18:42 +0200)
committerKrinkle <krinklemail@gmail.com>
Tue, 16 Oct 2018 22:07:22 +0000 (22:07 +0000)
commit0513250c882457baf3a1e96e1f0b5a7bad5965fe
tree8d25e6eec2fd762e271bc47667c983dd994e7b76
parentc807489e1c4582c883f2b2696c5cf77e579f82b7
Selenium: record video of every test

In addition to two existing modes (headless and visible), this patch
introcues another mode, headless recording.

If DISPLAY environment variable is not set, Chrome will run in it's
built-in headless mode.
If it is set, and the value starts with colon (`:`), Chrome will
run in headless mode using Xvfb and record video of every test using FFmpeg.
If the value does not start with colon, Chrome will be visible.

Bug: T179188
Change-Id: Ic1723c5f2d57a28201caf6ba7056cb73fb74a957
tests/selenium/README.md
tests/selenium/wdio.conf.js