Safe Haskell | None |
---|---|
Language | Haskell2010 |
Test.Sandwich.WebDriver.Binaries
Description
Obtain various binaries you might need for WebDriver testing.
Synopsis
- obtainSelenium :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) => SeleniumToUse -> m FilePath
- data SeleniumToUse
- obtainChrome :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) => ChromeToUse -> m (Either Text FilePath)
- data ChromeToUse
- newtype ChromeVersion = ChromeVersion (Int, Int, Int, Int)
- obtainChromeDriver :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) => ChromeDriverToUse -> m (Either Text FilePath)
- data ChromeDriverToUse
- data ChromeDriverVersion
- obtainFirefox :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) => FirefoxToUse -> m (Either Text FilePath)
- data FirefoxToUse
- obtainGeckoDriver :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) => GeckoDriverToUse -> m (Either Text FilePath)
- data GeckoDriverToUse
- newtype GeckoDriverVersion = GeckoDriverVersion (Int, Int, Int)
- obtainFfmpeg :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLoggerIO m, MonadMask m) => FfmpegToUse -> m (Either Text FilePath)
- data FfmpegToUse
- obtainXvfb :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLoggerIO m) => XvfbToUse -> m (Either Text FilePath)
- data XvfbDependenciesSpec = XvfbDependenciesSpec {}
- data XvfbToUse
- data FluxboxToUse
Selenium
Arguments
:: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) | |
=> SeleniumToUse | How to obtain Selenium |
-> m FilePath |
Manually obtain a Selenium server JAR file, according to the SeleniumToUse
policy,
storing it under the provided FilePath
if necessary and returning the exact path.
data SeleniumToUse Source #
How to obtain the Selenium server JAR file.
Constructors
DownloadSeleniumFrom FilePath String | Download selenium from the given URL to the |
DownloadSeleniumDefault FilePath | Download selenium from a default location to the |
UseSeleniumAt FilePath | Use the JAR file at the given path |
UseSeleniumFromNixpkgs NixContext | Use the Selenium in the given Nixpkgs derivation |
Instances
Show SeleniumToUse Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Selenium.Types Methods showsPrec :: Int -> SeleniumToUse -> ShowS # show :: SeleniumToUse -> String # showList :: [SeleniumToUse] -> ShowS # |
Chrome
obtainChrome :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) => ChromeToUse -> m (Either Text FilePath) Source #
Manually obtain a chrome binary, according to the ChromeToUse
policy,
data ChromeToUse Source #
How to obtain the chrome binary.
Constructors
UseChromeFromPath | Search the PATH for the |
UseChromeAt FilePath | Use the Chrome at the given path. |
UseChromeFromNixpkgs NixContext | Get Chrome from Nixpkgs. |
Instances
Show ChromeToUse Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Chrome.Types Methods showsPrec :: Int -> ChromeToUse -> ShowS # show :: ChromeToUse -> String # showList :: [ChromeToUse] -> ShowS # |
newtype ChromeVersion Source #
Constructors
ChromeVersion (Int, Int, Int, Int) |
Instances
Show ChromeVersion Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Chrome.Types Methods showsPrec :: Int -> ChromeVersion -> ShowS # show :: ChromeVersion -> String # showList :: [ChromeVersion] -> ShowS # |
Chrome driver
Arguments
:: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) | |
=> ChromeDriverToUse | How to obtain |
-> m (Either Text FilePath) |
Manually obtain a chromedriver
binary, according to the ChromeDriverToUse
policy.
data ChromeDriverToUse Source #
How to obtain the chromedriver binary.
Constructors
DownloadChromeDriverFrom FilePath String | Download chromedriver from the given URL to the |
DownloadChromeDriverVersion FilePath ChromeDriverVersion | Download the given chromedriver version to the |
DownloadChromeDriverAutodetect FilePath FilePath | Autodetect chromedriver to use based on the Chrome version and download it to the |
UseChromeDriverAt FilePath | Use the chromedriver at the given path. |
UseChromeDriverFromNixpkgs NixContext | Use the chromedriver in the given Nixpkgs derivation. |
Instances
Show ChromeDriverToUse Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Chrome.Types Methods showsPrec :: Int -> ChromeDriverToUse -> ShowS # show :: ChromeDriverToUse -> String # showList :: [ChromeDriverToUse] -> ShowS # |
data ChromeDriverVersion Source #
Constructors
ChromeDriverVersionTuple (Int, Int, Int, Int) | |
ChromeDriverVersionExactUrl (Int, Int, Int, Int) Text |
Instances
Show ChromeDriverVersion Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Chrome.Types Methods showsPrec :: Int -> ChromeDriverVersion -> ShowS # show :: ChromeDriverVersion -> String # showList :: [ChromeDriverVersion] -> ShowS # |
Firefox
obtainFirefox :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) => FirefoxToUse -> m (Either Text FilePath) Source #
Manually obtain a firefox binary, according to the FirefoxToUse
policy,
data FirefoxToUse Source #
How to obtain the firefox
binary.
Constructors
UseFirefoxFromPath | Search the PATH for the |
UseFirefoxAt FilePath | Use the Firefox at the given path. |
UseFirefoxFromNixpkgs NixContext | Get Firefox from Nixpkgs. |
Instances
Show FirefoxToUse Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Firefox.Types Methods showsPrec :: Int -> FirefoxToUse -> ShowS # show :: FirefoxToUse -> String # showList :: [FirefoxToUse] -> ShowS # |
Geckodriver
Arguments
:: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLogger m) | |
=> GeckoDriverToUse | How to obtain |
-> m (Either Text FilePath) |
Manually obtain a geckodriver
binary, according to the GeckoDriverToUse
policy,
storing it under the provided FilePath
if necessary and returning the exact path.
data GeckoDriverToUse Source #
How to obtain the geckodriver
binary.
Constructors
DownloadGeckoDriverFrom FilePath String | Download |
DownloadGeckoDriverVersion FilePath GeckoDriverVersion | Download the given |
DownloadGeckoDriverAutodetect FilePath | Autodetect |
UseGeckoDriverAt FilePath | Use the |
UseGeckoDriverFromNixpkgs NixContext | Use the |
Instances
Show GeckoDriverToUse Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Firefox.Types Methods showsPrec :: Int -> GeckoDriverToUse -> ShowS # show :: GeckoDriverToUse -> String # showList :: [GeckoDriverToUse] -> ShowS # |
newtype GeckoDriverVersion Source #
Constructors
GeckoDriverVersion (Int, Int, Int) |
Instances
Show GeckoDriverVersion Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Firefox.Types Methods showsPrec :: Int -> GeckoDriverVersion -> ShowS # show :: GeckoDriverVersion -> String # showList :: [GeckoDriverVersion] -> ShowS # |
Ffmpeg
obtainFfmpeg :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLoggerIO m, MonadMask m) => FfmpegToUse -> m (Either Text FilePath) Source #
Manually obtain an ffmpeg binary, according to the FfmpegToUse
policy.
data FfmpegToUse Source #
How to obtain the ffmpeg
binary.
Constructors
UseFfmpegFromPath | Search the PATH for the |
UseFfmpegAt FilePath | Use the |
UseFfmpegFromNixpkgs NixContext | Get |
Instances
Show FfmpegToUse Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Ffmpeg.Types Methods showsPrec :: Int -> FfmpegToUse -> ShowS # show :: FfmpegToUse -> String # showList :: [FfmpegToUse] -> ShowS # |
Xvfb
obtainXvfb :: (MonadReader context m, HasBaseContext context, MonadUnliftIO m, MonadLoggerIO m) => XvfbToUse -> m (Either Text FilePath) Source #
Manually obtain an Xvfb binary, according to the XvfbToUse
policy.
data XvfbDependenciesSpec Source #
Constructors
XvfbDependenciesSpec | |
How to obtain the Xvfb
binary.
Constructors
UseXvfbFromPath | Search the PATH for the |
UseXvfbAt FilePath | Use the |
UseXvfbFromNixpkgs NixContext | Get |
data FluxboxToUse Source #
How to obtain the fluxbox
binary.
Constructors
UseFluxboxFromPath | Search the PATH for the |
UseFluxboxAt FilePath | Use the |
UseFluxboxFromNixpkgs NixContext | Get |
Instances
Show FluxboxToUse Source # | |
Defined in Test.Sandwich.WebDriver.Internal.Binaries.Xvfb.Types Methods showsPrec :: Int -> FluxboxToUse -> ShowS # show :: FluxboxToUse -> String # showList :: [FluxboxToUse] -> ShowS # |