sandwich-webdriver-0.3.0.0: Sandwich integration with Selenium WebDriver
Safe HaskellNone
LanguageHaskell2010

Test.Sandwich.WebDriver.Video

Description

Functions for recording videos of browser windows.

Synopsis

Documentation

startBrowserVideoRecording Source #

Arguments

:: (BaseVideoConstraints context m, WebDriver m) 
=> FilePath

Output path

-> VideoSettings 
-> m VideoProcess 

Wrapper around startVideoRecording which uses WebDriver to find the rectangle corresponding to the browser.

startFullScreenVideoRecording Source #

Arguments

:: BaseVideoConstraints context m 
=> FilePath

Output path

-> VideoSettings 
-> m VideoProcess 

Wrapper around startVideoRecording which uses the full screen dimensions.

Lower-level

startVideoRecording Source #

Arguments

:: BaseVideoConstraints context m 
=> FilePath

Output path

-> (Word, Word, Int, Int)

Rectangle to record, specified as (width, height, x, y)

-> VideoSettings 
-> m VideoProcess

Returns handle to video process and list of files created

Record video to a given path, for a given screen rectangle.

Wrap a test to conditionally record video

recordVideoIfConfigured Source #

Arguments

:: (BaseVideoConstraints context m, WebDriver m, HasSomeCommandLineOptions context) 
=> String

Session name

-> m a 
-> m a 

Record video around a given action, if configured to do so in the CommandLineWebdriverOptions.

This can be used to record video around individual tests. It can also keep videos only in case of exceptions, deleting them on successful runs.

Configuration

data VideoSettings Source #

Constructors

VideoSettings 

Fields

defaultVideoSettings :: VideoSettings Source #

Default video settings.

fastX11VideoOptions :: [String] Source #

Default options for fast X11 video recording.

qualityX11VideoOptions :: [String] Source #

Default options for quality X11 video recording.

defaultAvfoundationOptions :: [String] Source #

Default options for AVFoundation recording (for Darwin).

defaultGdigrabOptions :: [String] Source #

Default options for gdigrab recording (for Windows).

Types

data VideoProcess Source #

A type representing a live video recording process