Skip to content

Configuration⚓︎

Here you can find descriptions, examples and use cases for all global QTAF settings.

driver⚓︎

The driver settings are essential for the web driver to properly interact with your application.

options⚓︎

A list of browser options to pass to the web driver on instantiation.

Environment variable
DRIVER_OPTIONS
Type
string[]
Example
"driver": {
  "options": [
    "--headless",
    "--disable-gpu",
    "--ignore-certificate-errors",
    "--disable-extensions",
    "--no-sandbox",
    "--disable-dev-shm-usage"
  ]
}
DRIVER_OPTIONS="[--headless, --disable-gpu, --ignore-certificate-errors, --disable-extensions, --no-sandbox, --disable-dev-shm-usage]"

capabilities⚓︎

A capabilities object to pass to the web driver on instantiation.

Environment variable
DRIVER_CAPABILITIES
Type
JSON object
Example
1
2
3
4
5
6
7
"driver": {
  "capabilities": {
    "acceptInsecureCerts": true,
    "elementScrollBehavior": 1,
    "customCapability": [42, "yes", false]
  }
}
DRIVER_CAPABILITIES="{acceptInsecureCerts: true, elementScrollBehavior: 1, customCapability: [42, yes, false]}"

preferences⚓︎

Additional browser preferences to pass to the web driver options on instantiation.

Info

These preferences will be passed to the driver options as follows:

Environment variable
DRIVER_PREFERENCES
Type
JSON object
Example

The following will set the download directory in Chromium-based browsers to /home/me/downloads.

1
2
3
4
5
6
7
"driver": {
  "preferences": {
    "prefs": {
      "download.default_directory": "/home/me/downloads"
    }
  }
}
DRIVER_PREFERENCES="{prefs: {download.default_directory: /home/me/downloads}}"