-->

how to record video of selenium tests running on X

2019-06-02 10:22发布

问题:

I want a video recording of my selenium tests (chromedriver running on linux server with Xvfb).

How would you go about doing this with ffmpeg or does a library already exist? I also would like the output to be a choppy gif (I just need to know the basics of what is happening).

回答1:

You could try this : https://github.com/lightsofapollo/x-recorder

What it does is pretty simple : start an xvfb-run of your command, then record the X11 output with ffmpeg.