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 :: WDConfig -> WD a -> IO a
- wrapWebDriverFunction :: Browser -> a -> (a -> IO b) -> IO b
- wrappedFirefoxRunWD :: WDSession -> WD a -> IO a
- wrappedChromeRunWD :: WDSession -> WD a -> IO a
Documentation
wrappedRunSession :: WDConfig -> WD a -> IO a Source #
Same as runSession
, but starts Selenium before execution and kills Selenium after execution.
Will download Selenium or the browser's webdriver (geckodriver or chromedriver) if any is missing.
wrapWebDriverFunction :: Browser -> 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 and the Browser's webdriver (geckodriver or chromedriver) if any is missing.