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

GHC 10.0.0.20260917 · lts/ghc-10.0.x · fc4e598 · 2026-10-11

Modulewebdriver-0.15.0.0Haskell2010

Test.WebDriver.Capabilities

This module contains the types for working with WebDriver Capabilities. Capabilities are used to configure and communicate the features supported by a session.

Some settings, like _capabilitiesTimeouts, are browser-agnostic. But the Capabilities object is also where browser-specific settings can be added, under _capabilitiesGoogChromeOptions, _capabilitiesMozFirefoxOptions, etc.

This module provides lenses for all of the fields it defines, to make it easier to manipulate nested values.

  • 13 types
  • 55 values
  • Packagewebdriver-0.15.0.0
  • Exports68
  • LanguageHaskell2010
  • LicenceBSD-3-Clause
  • SourceCapabilities.hs

Capabilities

2 declarations
datadata Capabilities
#

A structure describing the capabilities of a session. This record serves dual roles.

It's used to specify the desired capabilities for a session before it's created. In this usage, fields that are set to Nothing indicate that we have no preference for that capability.

When received from the server , it's used to describe the actual capabilities given to us by the WebDriver server. Here a value of Nothing indicates that the server doesn't support the capability. Thus, for Maybe Bool fields, both Nothing and Just False indicate a lack of support for the desired capability.

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Lenses

Types

datadata Timeouts
#
Instances4Eq, Show, FromJSON, ToJSON
  • Eq TimeoutsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.Timeouts
  • Show TimeoutsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.Timeouts
  • FromJSON TimeoutsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.Timeouts
  • ToJSON TimeoutsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.Timeouts
datadata UserPromptHandler
#
Instances4Eq, Show, FromJSON, ToJSON
datadata Platform
#

Represents the platformName option of the primary capabilities

Instances5Eq, Ord, Show, FromJSON, ToJSON
  • Eq PlatformDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.Platform
  • Ord PlatformDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.Platform
  • Show PlatformDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.Platform
  • FromJSON PlatformDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.Platform
  • ToJSON PlatformDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.Platform

Chrome

2 declarations
datadata ChromeOptions
#

Constructors

Instances4Eq, Show, FromJSON, ToJSON
  • Eq ChromeOptionsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.ChromeOptions
  • Show ChromeOptionsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.ChromeOptions
  • FromJSON ChromeOptionsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.ChromeOptions
  • ToJSON ChromeOptionsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.ChromeOptions

Lenses

Client hints

datadata ChromeClientHints
#

Constructors

Instances4Eq, Show, FromJSON, ToJSON
datadata BrandAndVersion
#
Instances4Eq, Show, FromJSON, ToJSON

Device metrics

datadata ChromeDeviceMetrics
#

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Extensions

newtypenewtype ChromeExtension
#

A packed Google Chrome extension (.crx), as base64-encoded Text.

Instances5Eq, Read, Show, FromJSON, ToJSON

Mobile emulation

Constructors

Instances4Eq, Show, FromJSON, ToJSON

Firefox

3 declarations
datadata FirefoxOptions
#

Constructors

  • FirefoxOptions
    • _firefoxOptionsBinary :: Maybe String

      Absolute path to the custom Firefox binary to use.

      On macOS you may either give the path to the application bundle, i.e. /Applications/Firefox.app, or the absolute path to the executable binary inside this bundle, for example /Applications/Firefox.app/Contents/MacOS/firefox-bin.

      geckodriver will attempt to deduce the default location of Firefox on the current system if left undefined.

    • _firefoxOptionsArgs :: Maybe [String]

      Command line arguments to pass to the Firefox binary. These must include the leading dash (-) where required, e.g. ["-headless"].

      To have geckodriver pick up an existing profile on the local filesystem, you may pass ["-profile", -- "/path/to/profile"]. But if a profile has to be transferred to a target machine it is recommended to use the profile entry.

    • _firefoxOptionsProfile :: Maybe (Profile Firefox)

      Base64-encoded ZIP of a profile directory to use for the Firefox instance. This may be used to e.g. install extensions or custom certificates, but for setting custom preferences we recommend using the prefs entry instead.

    • _firefoxOptionsLog :: Maybe FirefoxLogLevel

      To increase the logging verbosity of geckodriver and Firefox, you may pass a log object that may look like {"log": {"level": "trace"}} to include all trace-level logs and above.

    • _firefoxOptionsPrefs :: Maybe Object

      Map of preference name to preference value, which can be a string, a boolean or an integer.

    • _firefoxOptionsEnv :: Maybe (Map String String)

      Map of environment variable name to environment variable value, both of which must be strings.

      On Desktop, the Firefox under test will launch with given variable in its environment. On Android, the GeckoView-based App will have the given variable added to the env block in its configuration YAML.

Instances4Eq, Show, FromJSON, ToJSON
  • Eq FirefoxOptionsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.FirefoxOptions
  • Show FirefoxOptionsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.FirefoxOptions
  • FromJSON FirefoxOptionsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.FirefoxOptions
  • ToJSON FirefoxOptionsDefined in webdriver-0.15.0.0 · Test.WebDriver.Capabilities.FirefoxOptions

Lenses

Log level

datadata FirefoxLogLevel
#
Instances4Eq, Show, FromJSON, ToJSON
datadata FirefoxLogLevelType
#
Instances4Eq, Show, FromJSON, ToJSON