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
capabilities
⚓︎
A capabilities object to pass to the web driver on instantiation.
- Environment variable
DRIVER_CAPABILITIES
- Type
JSON object
Example
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:
- Chromium: as experimental options
- Firefox: as a firefox profile
- Environment variable
DRIVER_PREFERENCES
- Type
JSON object
Example
Download Directory⚓︎
Chromium-based drivers⚓︎
You can set the download directory for Chrome and Edge in the following way:
Firefox⚓︎
When using the firefox webdriver you can change the download directory in the following way:
Using variables⚓︎
You can also use the expressions $USER_DIR
and $USER_HOME
in your download path. $USER_HOME
will be replaced by the home directory of the currently logged in user and $USER_DIR
by the directory where the QTAF project is stored in.
For example you can save the downloads (for Chromium based drivers) in the resources
directory of your project with the following configuration: