Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
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
- wrappedRunSession :: WebDriverConfig conf => conf -> WD a -> IO a
- wrappedRunWD :: WDSession -> WD a -> IO a
- wrapWebDriverFunction :: a -> (a -> IO b) -> IO b
- downloadIfMissing :: IO ()
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.