I'm new to using QAF Automation framework. I followed the documentation on this page - https://qmetry.github.io/qaf/latest/setting_driver_capabilities.html
My requirement is: I have to download a file in my test and the download should go to my project's download folder and not on macbook/test machine's download folder.
I'm using chromeDriver and have to set chrome capabilities in the application.properties file within QAF framework. I added the below but it's not working
chrome.capabilities.profile.default_content_settings.popups=0
chrome.capabilities.download.default_directory=/downloads
chrome.capabilities.credentials_enable_service=false
chrome.capabilities.profile.password_manager_enabled=false
chrome.capabilities.CapabilityType.ACCEPT_SSL_CERTS=true
chrome.additional.capabilities={"chrome options":{"args":["--headless -
-disable-gpu"]}}
I also tried directly using chrome.additional.capabilities for all the capabilities I wanted to set, like below, and it didn't work either
chrome.additional.capabilities={"chrome options":{"args":["--allow-
outdated-plugins","--always-authorize-plugins","--headless --disable-
gpu","-disable-extensions"]},"prefs":
[{"profile.default_content_settings.popups":0},
{"download.default_directory":"/downloads"},
{"credentials_enable_service":false},
{"profile.password_manager_enabled":false}]}
When I execute my test, the test runs successfully and passes but the file is downloaded to my macbook download directory and not within my project specific download folder I've set using capabilities.
I tried using chromeDriver.capabilities instead of chrome.capabilities with no success.
Can anyone who used QAF before, help me with solving this issue?