Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to record a video in Selenium webdriver [closed]

I have automated scripts that run every night (around 350 scripts or testcases). I want to record a video of each test case (Python scripts). Is there a tool or way that I can use to control video recording for each test case separately?

For instance, 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 350 videos for each testcase (more preferably save only videos for the failed test cases).

Is there a way of integrating this functionality in the code I use for my setups and teardowns?

like image 677
Adam Avatar asked Feb 05 '13 11:02

Adam


People also ask

Can we do recording in selenium?

With Selenium IDE, you can record user actions on a web page, such as loading a page, clicking a link, or selecting an object.

Does selenium WebDriver support record and playback?

Record And Playback in Selenium is an easy process of creating test cases by simply using the web browser and performing several steps that need to be included in the test cases. Selenium IDE is the ultimate tool for using Record and Playback.

How do I record selenium in Chrome?

Click on the “REC” button to start recording. A target website page will then open, where you can record the actions according to the steps of your test case. Once you are done recording the test case steps, go back to Selenium IDE and finish the recording by clicking on the Stop button. Save the project again.


1 Answers

A simple webdriver has no function to record video; you need to use a third-party library, like Castro.

For a Java webdriver, look at blog post Screen Recording (Video) of Java Webdriver script.

like image 57
Akib Avatar answered Oct 16 '22 08:10

Akib