Below given are few of the most commonly used Desired Capabilities in executions using Testsigma.
Description | Capability Name | Data Type | Value |
---|---|---|---|
Browser Specific: Chrome | |||
Accept insecure/expired certificates | acceptInsecureCerts | boolean | true |
Changing User Agent | goog:chromeOptions | String | {"args":["--user-agent=USER_AGENT_STRING_HERE"]} For Example: {"args":["--user-agent=Mozilla/5.0 (Linux; <Android Version>; <Build Tag etc.>) AppleWebKit/<WebKit Rev> (KHTML, like Gecko) Chrome/<Chrome Rev> Mobile Safari/<WebKit Rev>"]} |
Adding a single Chrome Extension to session | goog:chromeOptions | String | {"extensions":["path/to/extension"]} More details: How to add Chrome Extension to a session using Desired Capabilities |
Adding Chrome Extensions to session | goog:chromeOptions | String | {"extensions":["path/to/extension1"],["path/to/extension2"]} More details: How to add Chrome Extension to a session using Desired Capabilities |
Setting mobile device Emulation | goog:chromeOptions | String | {"mobileEmulation":{"deviceName":"iPhone X"}} More details: How to set Desired Capabilities for emulating Mobile devices using Chrome Browser |
Disabling Browser Notifications | goog:chromeOptions | String | {“args”:[“--disable-notifications”]} |
Setting custom profile for Browser data | goog:chromeOptions | String | {"args":["user-data-dir=/path/to/your/custom/profile"]} More details: How to open Chrome with user defined profile in Testsigma using Desired Capabilities |
Setting the Geo location (Chrome) | goog:chromeOptions geolocation | String String | { "profile.default_content_setting_values.geolocation": 1 } 51.50735, -0.12776, 100 More details: How to manually set a geographical location for Test Cases using Desired Capabilities |
Bypassing Chrome download protection (Keep/discard prompt for file downloads) | goog:chromeOptions | String | {"prefs":{"safebrowsing.enabled":"true"}} More details: How to bypass or avoid Keep/Discard unsafe download prompt for Google Chrome? |
Firefox | |||
Setting the Geo location (Firefox) | firefoxprofile | String | {"geo.prompt.testing": true, "geo.prompt.testing.allow": true, "geo.enabled": true, "geo.wifi.uri": "data:application/json,{\"location\": {\"lat\": 34.052235, \"lng\": -118.243683}, \"accuracy\": 100.0}" } More details: How to manually set a geographical location for Test Cases using Desired Capabilities |
Accept insecure/expired certificates | accept_untrusted_certs | boolean | True |
IE | |||
Safari | |||
Edge | |||
Accept insecure/expired certificates | acceptInsecureCerts | boolean | True |
Execution Timeouts Specific (Testsigma Labs) | |||
Settings user-defined Step timeout duration - As a safety measure to prevent tests from running too long after something has gone wrong, Testsigma limits how long a browser can wait for a test to send a new command. | idleTimeout | Integer | 90 minimum - 0 default - 90 maximum - 1000 More details: How to set Sauce Labs environment specific settings(step timeout, maximum test duration ) in Testsigma |
Settings user-defined maximum test duration - As a safety measure to prevent tests from running indefinitely, Sauce limits the duration of tests to 30 minutes by default. | maxDuration | Integer | 3600 minimum - 0 default - 3600 maximum - 10800 More details: How to set Sauce Labs environment specific settings(step timeout, maximum test duration ) in Testsigma |
Environment Customizations (Testsigma Labs) | |||
Setting the Timezone of the execution Environment | timeZone | String | Madrid You can get the list of Timezone locations from here: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones Use the City name without the Continent Name and replace underscores by space |
Getting Excecution Console log of each url | extendedDebugging | Boolean | true |
Environment Customizations (BrowserStack) | |||
Enable Visual Logs in BrowserStack | browserstack.debug | Boolean | true |
Enable Local Testing in BrowserStack | browserstack.local | Boolean | true |
Android Specific | |||
Persist App data in local Android devices across Hybrid Test sessions | noReset | boolean | true |
Please check this article for more details on the usage of these values in the Desired Capabilities option under Execution Configuration - How to use Desired Capabilities in Testsigma?