Skip to content

Commit e025475

Browse files
committed
Versions added
1 parent 4bbddc9 commit e025475

3 files changed

Lines changed: 31 additions & 0 deletions

File tree

videoRecorder/config/checkConfiguration.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
project.
88
You 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
1112
import pathlib
1213

videoRecorder/test/demo.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
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+
110
from videoRecorder import desktopBrowserRecorder
211
from selenium import webdriver
312
import time

videoRecorder/videoRecorder/desktopBrowserRecorder.py

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,28 @@
22
Created 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"
627
from selenium import webdriver
728
import imageio
829
import pyautogui

0 commit comments

Comments
 (0)