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

Test.WebDriverWrapper.Helpers

Description

 
Synopsis

Documentation

download :: String -> FilePath -> IO () Source #

Downloads from url at output filepath.

decompressGecko :: FilePath -> FilePath -> IO () Source #

Decompresses geckodriver's download, which comes in .zip for Windows or .tar.gz for everyone else. Takes in the archive's filepath and the output filepath.

decompressZip :: FilePath -> FilePath -> IO () Source #

Decompresses a Zip file. Takes in the archive's filepath and the output filepath.

evalUntillSuccess :: [IO String] -> IO String Source #

Evaluates each IO individually and returns the first one that doesn't throw an error. Throws an error if none succeed.