Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

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

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()