Is it possible to capture video using PhantomJS in combination with Poltergeist, Capybara and Cucumber gems?
I used to use a headless hat that put the video in a specific folder in case of an unsuccessful scenario. If everything went well, the video was not saved.
Headless uses xvfb and ffmpeg. You can also use ffmpeg to provide the same functionality as 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 do this. Any advice is appreciated.
This is a PhantomJS tutorial for recording videos: http://mindthecode.com/recording-a-website-with-phantomjs-and-ffmpeg
You cannot record videos using PhantomJS, but I think you could hook something up to the screenshot at each step that Capybara takes (you will need to dig into the code to do this).
Source: https://habr.com/ru/post/1484091/More articles:Is this a legal way to vertically + horizontally center images in HTML? - cssUse webapp class path using JavaCompiler in Tomcat in Eclipse with Maven - classpathSpring autowire stops working for classes in Tomcat classpath - springUsing JavaCompiler with Classpath referencing banks in the ear - classpathSystem.getProperty ("java.class.path") does not show "WEB-INF / lib" and included banks - javaWebGL: vertex buffer with more than 4-dimensional coordinates? - bufferjava.sql.Statement # executeUpdate () vs execute ()? - jdbccapistrano deployment fails with error unable to create / u / apps / ... - capistranoC # Window_KeyUp () not working - c #Where do I put my cython files in a python distribution? - pythonAll Articles