packages feed

webdriver 0.6.1 → 0.6.2

raw patch · 6 files changed

+11/−7 lines, 6 filesdep ~base

Dependency ranges changed: base

Files

CHANGELOG.md view
@@ -1,4 +1,8 @@ #Change Log+##0.6.2+* Supports GHC 7.10+* Supports reworked Chrome capabilities used by newer versions of WebDriver+* Servers that return empty JSON strings for commands with no return value will no longer cause parse errors   ##0.6.1 * Added the ability to pass HTTP request headers at session creation
TODO.md view
@@ -5,6 +5,7 @@ - add support for Opera profiles - overload URL inputs/outputs to implicitly support structured URL types - provide exception handling utilities (maybeNotFound, ignoreNotFound, ...)+- POST "/session/{sessionId}/phantom/execute"  #documentation - document errors.
src/Test/WebDriver/Commands.hs view
@@ -1,5 +1,5 @@ {-# LANGUAGE OverloadedStrings, ScopedTypeVariables, ExistentialQuantification,-             TemplateHaskell, RecordWildCards #-}+             TemplateHaskell, RecordWildCards, FlexibleContexts #-} -- |This module exports basic WD actions that can be used to interact with a -- browser session. module Test.WebDriver.Commands@@ -335,10 +335,6 @@                                cookPath = Nothing, cookDomain = Nothing,                                cookSecure = Nothing, cookExpiry = Nothing                              }---- This line causes a strange out of scope error. Moving to the bottom of the--- file fixed it.--- $( deriveToJSON (map C.toLower . drop 4) ''Cookie )  instance FromJSON Cookie where   parseJSON (Object o) = Cookie <$> req "name"
src/Test/WebDriver/JSON.hs view
@@ -58,6 +58,7 @@ instance FromJSON NoReturn where   parseJSON Null                    = return NoReturn   parseJSON (Object o) | HM.null o  = return NoReturn+  parseJSON (String "")             = return NoReturn   parseJSON other                   = typeMismatch "no return value" other  
src/Test/WebDriver/Monad.hs view
@@ -67,7 +67,9 @@  -- |Executes a 'WD' computation within the 'IO' monad, automatically creating a new session beforehand. ----- NOTE: session is not automatically closed. If you want this behavior, use 'finallyClose'.+-- NOTE: session is not automatically closed when complete. If you want this behavior, use 'finallyClose'.+-- Example:+-- >    runSessionThenClose action = runSession myConfig . finallyClose $ action runSession :: WDConfig -> WD a -> IO a runSession conf wd = do   sess <- mkSession conf
webdriver.cabal view
@@ -1,5 +1,5 @@ Name: webdriver-Version: 0.6.1+Version: 0.6.2 Cabal-Version: >= 1.8 License: BSD3 License-File: LICENSE