Skip to content

Screen recording during tests #3772

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
smanenti opened this issue May 25, 2025 · 1 comment
Closed

Screen recording during tests #3772

smanenti opened this issue May 25, 2025 · 1 comment
Labels
duplicate The answer/solution already exists somewhere question Someone is looking for answers

Comments

@smanenti
Copy link

Hi!
Do you know any way (even by using a third party plugin) to record the browser's screen during tests?
The screenshot that is taken in case of failure is often not sufficient, as we need to know what happened prior to the issue.
Currently, we have workaround this by implementing a thread that is taking screenshot every x FPS, using SB screenshot function. Then the images are converted to MP4 in case of a failing test, and save. To achieve that, we have overwritten SetUp and Teardown of SB.

Even if this perfectly working, with all browser, this is not efficient as it will surcharge the Webdriver and thus, slow down the execution of the test (even though it is running in a sperate thread).

Any help would be really appreciated 👍

Thanks

@mdmintz mdmintz added duplicate The answer/solution already exists somewhere question Someone is looking for answers labels May 25, 2025
@mdmintz
Copy link
Member

mdmintz commented May 25, 2025

Duplicate of #2708 (comment).

Use an existing tool with SeleniumBase such as Zalenium for recording videos:
https://opensource.zalando.com/zalenium/
It works like a Selenium Grid.
See https://seleniumbase.io/seleniumbase/utilities/selenium_grid/ReadMe/ for instructions on using SeleniumBase to connect to a Selenium Grid.

(Note that the Grid isn't compatible with UC Mode / CDP Mode.)

@mdmintz mdmintz closed this as completed May 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate The answer/solution already exists somewhere question Someone is looking for answers
Projects
None yet
Development

No branches or pull requests

2 participants