webdriver-wrapper-0.1.0.1: Wrapper around the webdriver package that automatically manages Selenium
Safe HaskellSafe-Inferred
LanguageHaskell2010

Test.WebDriverWrapper

Description

The wrapped functions (wrappedRunSession and wrappedRunWD) will download Selenium and Firefox's webdriver (geckodriver) if they're not already on the downloadPath, then start Selenium before running the webdriver equivalent function (runSession and runWD). They kill the Selenium process at the end of their execution.

Synopsis

Documentation

wrappedRunSession :: WebDriverConfig conf => conf -> WD a -> IO a Source #

Same as runSession, but starts Selenium before execution and kills Selenium after execution. Will download Selenium or Firefox's webdriver (geckodriver) if any is missing.

wrappedRunWD :: WDSession -> WD a -> IO a Source #

Same as runWD, but starts Selenium before execution and kills Selenium after execution. Will download Selenium or Firefox's webdriver (geckodriver) if any is missing.

wrapWebDriverFunction :: a -> (a -> IO b) -> IO b Source #

Runs a function in between starting and killing Selenium. Takes in the arguments and the function, in that order. Will download Selenium or Firefox's webdriver (geckodriver) if any is missing.

downloadIfMissing :: IO () Source #

Dowloads Selenium or Firefox's webdriver (geckodriver) if they're missing.