File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 77project.
88You can whether run this module or use the function created here.
99'''
10+ __version__ = "0.1.4"
1011#We need to import pathlib to get the path of our current project
1112import pathlib
1213
Original file line number Diff line number Diff line change 1+ '''
2+ Created on 29 feb. 2020
3+
4+ @author: ingov
5+
6+ This is just a demo module that gives you an example of how this project is used.
7+ '''
8+ __version__ = "0.1.1"
9+
110from videoRecorder import desktopBrowserRecorder
211from selenium import webdriver
312import time
Original file line number Diff line number Diff line change 22Created on 28 feb. 2020
33
44@author: ingov
5+ This module contains the following classes:
6+ DesktopBrowserRecorder: This is the main class in this module. In order to record your desktop
7+ or a browser opened during a selenium automatic test, you just have to create an object of this
8+ class. The constructor can get 3 parameters folder, encoding and optionally driver. Folder is
9+ the path where you want the folder for the recording session to be created, encoding is the
10+ extension for the video (so far it is only tested and possible using .mp4) and driver is an
11+ optional parameter. It is a webdriver object, if you pass it to the constructor you will be
12+ recording the actions taken in the browser controlled by that object if you don't you will
13+ just record your desktop.
14+ In order to start a recording session, just use the method startRecordingSession offered by
15+ the object.
16+ In order to stop it, just use the method stopRecordingSession offered by the object
17+
18+ SessionStartedException: It is a called that inherits from the built-in class Exception.
19+ We just use it to define a custom made exception in case we want to start a recording
20+ session in an object that is already running a recording session.
21+
22+ NoSessionStartedException: It is a called that inherits from the built-in class Exception.
23+ We just use it to define a custom made exception in case we want to stop a recording
24+ session in an object that is not running a recording session.
525'''
26+ __version__ = "0.2.5"
627from selenium import webdriver
728import imageio
829import pyautogui
You can’t perform that action at this time.
0 commit comments