title: How to record a video in Selenium webdriver and Java API
body: <p>I have automated scripts that run every night (around 50 scripts or testcases). I want to record a video of each test case (Selenium Java API + Cucumber). Is there any tool or way that i can use to control video recording for each test case separately? I want during a test case setup start recording and during teardown stop recording and save the video locally with a specified name and date. So I should have 50 videos for each testcase (more preferably save only videos for the failed test cases)</p>
  
  <p>Is there a way of integrating this functionality in the code I use for my setups and teardowns?</p>