how to record video of selenium tests running on X

2019-06-02 10:53发布

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条回答
劫难
2楼-- · 2019-06-02 11:10

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.

查看更多
登录 后发表回答