Hi.
I’m need to set the desired capabilities in code, before the browser open.
I have done like in :
https://docs.katalon.com/katalon-studio/docs/override-desired-capabilities-at-runtime.html
But it don’t work ; the same props work if i put them by the menu settings …
Thanks for the help
My code is :
import com.kms.katalon.core.configuration.RunConfiguration
/**
- Setup test suite environment.
*/
@SetUp(skipped = false)
def setUp() {
RunConfiguration.setWebDriverPreferencesProperty(“browser.download.manager.showWhenStarting”, false)
RunConfiguration.setWebDriverPreferencesProperty(“browser.helperApps.neverAsk.saveToDisk”, “text/csv”)
RunConfiguration.setWebDriverPreferencesProperty(“browser.helperApps.neverAsk.openFile”, “text/csv”)
RunConfiguration.setWebDriverPreferencesProperty(“browser.download.folderList”, 2.0)
RunConfiguration.setWebDriverPreferencesProperty(“intl.accept_languages”, “fr”)
RunConfiguration.setWebDriverPreferencesProperty(“browser.download.dir”, “C:\XXX\YYY”)
}