Qytera-Gmbh / QTAF

QTAF is a Java test framework based on TestNG and offers easy setup of Selenium and fast extensibility.
https://qytera-gmbh.github.io
MIT License
10 stars 0 forks source link

Make driver preferences configurable #296

Closed csvtuda closed 3 months ago

csvtuda commented 3 months ago

This PR makes driver preferences configurable inside QTAF:

For example, to set the download directory for Chromium-based browsers, you can now set it up like this:

{
  "driver": {
    "name": "chrome",
    "preferences": {
      "download.default_directory": "/home/me/downloads",
      "profile.default_content_settings.popups": 0
    }
  }
}

For Firefox:

{
  "driver": {
    "name": "firefox",
    "preferences": {
      "browser.download.dir": "/home/me/downloads",
      "browser.helperApps.neverAsk.saveToDisk": "application/json"
    }
  }
}

Documentation: https://qytera-gmbh.github.io/projects/qtaf/sections/Configuration/#preferences