webdriver-w3c-0.0.2: Bindings to the WebDriver API

Copyright2018 Automattic Inc.
LicenseGPL-3
MaintainerNathan Bloomfield (nbloomf@gmail.com)
Stabilityexperimental
PortabilityPOSIX
Safe HaskellNone
LanguageHaskell2010

Web.Api.WebDriver.Helpers

Contents

Description

 
Synopsis

Data

writeDataFile Source #

Arguments

:: (Monad eff, Monad (t eff), MonadTrans t) 
=> FilePath

File path, relative to $DATA_PATH, with leading slash

-> ByteString 
-> WebDriverTT t eff () 

Write a ByteString to the data directory

readDataFile Source #

Arguments

:: (Monad eff, Monad (t eff), MonadTrans t) 
=> FilePath

File path, relative to $DATA_PATH, with leading slash

-> WebDriverTT t eff ByteString 

Read a ByteString from the data directory

writeJsonFile Source #

Arguments

:: (Monad eff, Monad (t eff), MonadTrans t, ToJSON a) 
=> FilePath

File path, relative to $DATA_PATH, with leading slash

-> a 
-> WebDriverTT t eff () 

Write JSON to the data directory

readJsonFile Source #

Arguments

:: (Monad eff, Monad (t eff), MonadTrans t) 
=> FilePath

File path, relative to $DATA_PATH, with leading slash

-> WebDriverTT t eff Value 

Read a JSON Value from the data directory

Secrets

stashCookies Source #

Arguments

:: (Monad eff, Monad (t eff), MonadTrans t) 
=> String

Passed through SHA1, and the digest is used as the filename.

-> WebDriverTT t eff () 

Save all cookies for the current domain to a file.

loadCookies Source #

Arguments

:: (Monad eff, Monad (t eff), MonadTrans t) 
=> String

Passed through SHA1, and the digest is used as the filename.

-> WebDriverTT t eff Bool 

Load cookies from a file saved with stashCookies. Returns False if the cookie file is missing or cannot be read.

Actions

press :: Key -> Action Source #

Simulate pressing a Key.

typeString :: String -> Action Source #

Simulate typing some text.