5

i am working in Selennium Webdriver2 with IE specific application. i know we can take the screenshots of the execution. similarly, Is there any option to record selenium execution as a video?

Karthikeyan
  • 2,634
  • 5
  • 30
  • 51
  • 2
    Not anything inherently present in webdriver. Previously, I've wanted this behaviour, but have since realized that a timely screenshot will help me more than having to go through a video, trying to identify a certain frame. – Nathan Merrill Aug 20 '13 at 13:00
  • There are providers out there like sauce labs or testing bot which record a video and take screenshots of your tests. – Scott Aug 26 '13 at 14:25

3 Answers3

2

There is nothing in WebDriver.

Sauce uses http://www.ffmpeg.org/ to record video's. There are other options like https://code.google.com/p/java-remote-control/.

Generally the answer is that if you want to do it, you are going to have to implement it yourself.

Ardesco
  • 7,281
  • 26
  • 49
2

This API helped me in solving the above problem, this is for your reference guys,

Karthikeyan
  • 2,634
  • 5
  • 30
  • 51
0

Selenium provides us with the feature to run the automation code/suite and record the output as a video and save it on your system. This video can then be shared with anyone who can see what the automation is doing. First of all, to enable video recording, we need to download some important jars. They are freely available to download from Google. Below are the jars to be downloaded. These are the latest version available, any other version can also be downloaded:

ATUReporter_Selenium_testNG_5.1.1 and ATUTestRecorder_2.1

Complete code can be found here: https://mytechdevice.com/how-to-record-video-of-automation-output-in-selenium/