If you are testing a web application on a WebDriver-based browser, you can customize and configure the browser session by setting the capabilities.
For information on the available options and capabilities for Mozilla Firefox 48 or later, see https://github.com/mozilla/geckodriver. For information on the available options and capabilities for Google Chrome, see Capabilities & ChromeOptions.
To set the capabilities in Silk Test Classic:
For additional information, see Modifying the Base State (Open Agent).
STRING sConnectionString = "moz:firefoxOptions="{""prefs"": "{ ""browser.download.folderList"": 2, ""browser.helperApps.neverAsk.saveToDisk"": ""application/octet-stream""}}"
STRING sConnectionString = "moz:firefoxOptions="{""prefs"": "{ ""browser.download.dir"" : ""C:/Download""}}"
STRING sConnectionString = "moz:firefoxOptions="{""args"": [""--devtools""]}"
STRING sConnectionString = "chromeOptions="{""prefs"": "{""profile.default_content_setting_values.automatic_downloads"":1, ""download.default_directory"":""c:/Download"", ""download.prompt_for_download"":false}}"
STRING sConnectionString = "chromeOptions="{""args"": [""--disable-save-password-bubble""], ""prefs"": "{""profile.password_manager_enabled"": false, ""credentials_enable_service"":false}}"