Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yldrmzffr/reconium
Selenium Test WebDriver Record Video Python
https://github.com/yldrmzffr/reconium
Last synced: 2 months ago
JSON representation
Selenium Test WebDriver Record Video Python
- Host: GitHub
- URL: https://github.com/yldrmzffr/reconium
- Owner: yldrmzffr
- License: mit
- Created: 2019-06-27T18:10:08.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2019-11-23T17:25:29.000Z (about 5 years ago)
- Last Synced: 2024-09-22T09:17:38.217Z (4 months ago)
- Language: Python
- Homepage:
- Size: 8.79 KB
- Stars: 4
- Watchers: 1
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# reconium
Record Video for Selenium Test
## Install
pip install reconium## Usage
import reconium
rc = reconium.Recorder(webdriver,fps)
rc.start()
# record here selenium test
rc.stop()## Example for both Linux and Windows
from selenium import webdriver
import reconium
import time
import platform
if(platform.system()=='Linux'):
driver_path = 'resources/geckodriver'
elif(platform.system()=='Windows'):
driver_path = 'resources/geckodriver.exe'
driver = webdriver.Firefox(executable_path=driver_path)
fps=20
rc = reconium.Recorder(driver,fps)
rc.start()
# record here selenium test
driver.get("https://www.google.com")
time.sleep(10)
driver.quit()
rc.stop()