HORIZON HASKELLDocslts/ghc-9.14.x45dd5372026-10-11Search names, modules, packages, or :: a typeCtrl K

GHC 9.14.1 · lts/ghc-9.14.x · 45dd537 · 2026-10-11

Modulewebdriver-0.15.0.0Haskell2010

Test.WebDriver.Waits

  • 1 type
  • 12 values

Wait on expected conditions

4 declarations

Expected conditions

8 declarations
valueexpect :: MonadIO m => Bool -> m ()
#

An expected condition. This function allows you to express assertions in your explicit wait. This function raises ExpectFailed if the given boolean is False, and otherwise does nothing.

Convenience functions

valueonTimeout :: MonadUnliftIO m => m a -> m a -> m a
#

Convenience function to catch FailedCommand Timeout exceptions and perform some action.

Example:

waitUntil 5 (getText <=< findElem $ ByCSS ".class")
   `onTimeout` return ""