Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Capture video with Poltergeist, PhantomJS and Capybara

Is it possible to capture video with PhantomJS in combination with the gems Poltergeist, Capybara and Cucumber?

I have used the Headless gem previously, which put a video in a specific folder in case a scenario failed. If all went well, no video was stored.

Headless uses Xvfb and ffmpeg. Can ffmpeg also be used to provide the same functionality as shown here: https://github.com/leonid-shevtsov/headless/blob/master/lib/headless/video/video_recorder.rb

I basically need the same functionality, but I have no idea how to go about it. Any advice is highly appreciated.

like image 783
TrashyMcTrash Avatar asked Oct 03 '22 23:10

TrashyMcTrash


1 Answers

This is a PhantomJS tutorial to record videos: http://mindthecode.com/recording-a-website-with-phantomjs-and-ffmpeg

like image 130
Sebastien Lorber Avatar answered Oct 07 '22 18:10

Sebastien Lorber