Skip to content

Commit

Permalink
Updated README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
AntoData committed Feb 10, 2022
1 parent 6dcc704 commit ca5d494
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions pydesktopbrowerrecorder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,16 @@
This project allows you to record your desktop or the browser during an automated test using selenium's webdriver

You just have to make the following import:
from videoRecorder import SeleniumBrowserRecorder
from pydesktopbrowerrecorder import selenium_browser_desktop_recorder

Then you create a SeleniumBrowserRecorder object, you have two modes. You have to provide the following parameters:
obj = desktopBrowserRecorder.SeleniumBrowserRecorder(folder,encoding)
obj = selenium_browser_desktop_recorder.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 = desktopBrowserRecorder.SeleniumBrowserRecorder(folder,encoding,driver)
obj = selenium_browser_desktop_recorder.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

Expand Down

0 comments on commit ca5d494

Please sign in to comment.