Skip to main content

PyDesktopBrowserRecorder

This project allows you to record your desktop or the browser during an automated test using selenium's webdriver

To install it, just open a terminal and execute:

pip install pydesktopbrowserrecorder

PiPY Project: https://pypi.org/project/pydesktopbrowserrecorder/

Once installed, you just have to make the following import:

from selenium_browser_desktop_recorder import SeleniumBrowserRecorder

Then you create a SeleniumBrowserRecorder object, you have two modes.

First mode:

obj = SeleniumBrowserRecorder(folder,encoding)

  • folder: Folder where we want to create the folder that will contain the videos for our recording session
  • encoding: Encoding of the video. We only assure that using ".mp4" will work This way, when you start the recording session, the desktop will be recorded until we stop the recording session

But you can also provide a third parameter:

obj = SeleniumBrowserRecorder(folder,encoding,driver)

  • driver: A webdriver object

    In this case, we will record only the browser window(s) that are being controlled by that webdriver object

To start the recording session once we build the object we only have to use this method:

obj.start_recording_session()

And our object will start recording in a parallel thread

To stop the recording session we only have to:

obj.stop_recording_session()

The video will be saved and the threads finished

NOTE: If we are recording a browser and the size of it changes, we will stop the current video and start a new one with the new size of the window

NOTE: This was developed using the following versions of the following external libraries:

  • imageio_ffmpeg = 0.4.5
  • numpy~=1.22.2
  • imageio==2.15.0
  • PyAutoGUI~=0.9.53
  • selenium~=4.1.0
  • Pillow~=9.0.1

Metadata

Release files for pydesktopbrowserrecorder 0.0.6

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for pydesktopbrowserrecorder 0.0.6
File Size Uploaded
pydesktopbrowserrecorder-0.0.6.tar.gz 5.7 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for pydesktopbrowserrecorder 0.0.6
File Interpreter ABI Platform
pydesktopbrowserrecorder-0.0.6-py3-none-any.whl Python 3 none any Details

Total release size: 12.0 kB

Release files / pydesktopbrowserrecorder-0.0.6.tar.gz

Download URL pydesktopbrowserrecorder-0.0.6.tar.gz
Size 5.7 kB
Tags Source
SHA-256 checksum
How to use checksums
44d1827090211a5f57cd5952454e4b4189a80588ded089faffa712d7013f51f1
BLAKE2b-256 checksum
How to use checksums
1c98fef87d8a69f8ca993e66d1a86f8e3ec7b84fbdaaa203e9b8fadd91e9d904
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release files / pydesktopbrowserrecorder-0.0.6-py3-none-any.whl

Download URL pydesktopbrowserrecorder-0.0.6-py3-none-any.whl
Size 6.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d7d7f87198ef11b766aca99a2fa56f0aa34a679058e6fc1269483133cc4602e6
BLAKE2b-256 checksum
How to use checksums
aaf21fbef26792dec13a8084527da2edf3c093be172a3c0e1521127817c91f3f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/32.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.8 tqdm/4.62.3 importlib-metadata/4.10.1 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.10.2

Release history Release notifications | RSS feed

This release

0.0.6 This release

2 release files

0.0.5

2 release files

0.0.4

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page