marionette-1.0.0: Marionette protocol for Firefox
Safe HaskellTrustworthy
LanguageHaskell2010

Test.Marionette.Class

Synopsis

Documentation

class (Functor m, MonadError Error m) => Marionette (m :: Type -> Type) where Source #

Monads with the ability to send commands to a Marionette server and receive their results.

Minimal complete definition

sendCommand | sendCommands

Methods

sendCommand :: (HasCallStack, FromJSON a) => Command -> m a Source #

Send a single command, decoding its result.

sendCommands :: (HasCallStack, Traversable t, FromJSON a) => t Command -> m (t a) Source #

Send multiple commands, decoding each result. The commands may be sent in parallel.

Instances

Instances details
(MonadUnliftIO m, MonadThrow m, MonadCatch m) => Marionette (MarionetteT m) Source # 
Instance details

Defined in Test.Marionette.Client

sendCommand_ :: (HasCallStack, Marionette m) => Command -> m () Source #

Send a single command, discarding its result.

sendCommands_ :: (HasCallStack, Traversable t, Marionette m) => t Command -> m () Source #

Send several commands, discarding their results. The commands may be sent in parallel.