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

Test.Sandwich.WebDriver.Video

Synopsis

Documentation

startVideoRecording :: BaseVideoConstraints context m => FilePath -> (Word, Word, Int, Int) -> VideoSettings -> m ProcessHandle Source #

Record video to a given path, for a given rectangle specified as (width, height, x, y).

Helpers

startFullScreenVideoRecording :: (BaseVideoConstraints context m, MonadMask m) => FilePath -> VideoSettings -> m ProcessHandle Source #

Wrapper around startVideoRecording which uses the full screen dimensions.

startBrowserVideoRecording :: (BaseVideoConstraints context m, MonadThrow m, HasWebDriverSessionContext context, WebDriver m) => FilePath -> VideoSettings -> m ProcessHandle Source #

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

Configuration

data VideoSettings Source #

Constructors

VideoSettings 

Fields

defaultVideoSettings :: VideoSettings Source #

Default video settings.

fastX11VideoOptions :: [String] Source #

Default options for fast X11 video recording.

qualityX11VideoOptions :: [[Char]] 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).