Skip to content
Testsigma DOCS

Desired Capabilities

Common Desired Capabilities


Below are a few of the most commonly used Desired Capabilities in executions using Testsigma:


DescriptionCapabilityData TypeValue
Accept insecure/expired certificatesacceptInsecureCertsbooleantrue
Changing User Agentgoog:chromeOptionsString{“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 sessiongoog:chromeOptionsString{“extensions”:[“path/to/extension”]}

For more details on adding Testsigma Chrome Extension to a session using Desired Capabilities, refer to the
documentation on adding Chrome Extension to a session using Desired Capabilities
Adding Chrome Extensions to sessiongoog:chromeOptionsString{“extensions”:[“path/to/extension1”],[“path/to/extension2”]}
For more details on adding Testsigma Chrome Extension to a session using Desired Capabilities, refer to the
documentation on adding Chrome Extension to a session using Desired Capabilities
Setting mobile device Emulationgoog:chromeOptionsString{“mobileEmulation”:{“deviceName”:“iPhone X”}}

For more details on configuring Desire Capabilites, refer to the
documentation on configuring Desired Capabilities for emulating mobile devices using Chrome Browser
Disabling Browser Notificationsgoog:chromeOptionsString{“args”:[“—disable-notifications”]}
Setting custom profile for Browser datagoog:chromeOptionsString{“args”:[“user-data-dir=/path/to/your/custom/profile”]}

For more details on opening Chrome with the user-defined profile in Testsigma using Desired Capabilities, refer to the
documentation on opening Chrome with the user-defined profile in Testsigma using Desired Capabilities
Setting the Geolocation (Chrome)
  • goog:chromeOptions
  • geolocation
  • String
  • String
  • {“profile.default_content_setting_values.geolocation”: 1 }

    51.50735, -0.12776, 100

    For more details on manually setting geographical location for test cases using Desired Capabillities, refer to the
    documentation on manually setting a geographical location for test cases using Desired Capabilities
    Bypassing Chrome download protection
    (Keep/discard promptly for file downloads)
    goog:chromeOptionsString{“prefs”:{“safebrowsing.enabled”:“true”}}

    For more details on avoiding unsafe download prompt from Google Chrome, refer to the
    documentation on avoiding unsafe download prompt for Google Chrome?
    Enable the provision of notifications and the inclusion of fabricated media streams.
  • goog:chromeOptions
  • goog:chromeOptions
  • goog:chromeOptions
  • String
  • String
  • String
  • {“args”:[“—use-fake-ui-for-media-stream”]}
  • {“args”:[“—use-fake-device-for-media-stream”]}
  • {“args”:[“—auto-select-desktop-capture-source=Entire screen”]}
  • Disable Chrome Alert Notificationsgoog:chromeOptionsString{“args”:[“—disable-notifications”]}

    DescriptionCapability NameData TypeValue
    Setting the Geolocation (Firefox)firefoxprofileString{“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}“
    }
    For more details on manually setting geographical location for test cases using Desired Capabillities, refer to the
    documentation on manually setting a geographical location for test cases using Desired Capabilities
    Accept insecure/expired certificatesaccept_untrusted_certsbooleanTrue

    DescriptionCapability NameData TypeValue
    Accept insecure/expired certificatesacceptInsecureCertsBooleanTrue
    Execute tests in Private browsingMsOptionsString{“args”:[“—inprivate”]}

    Execution Timeouts Specific in Testsigma Labs

    Section titled “Execution Timeouts Specific in Testsigma Labs”
    DescriptionCapability NameData TypeValue
    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.idleTimeoutInteger90

    minimum - 0
    default - 90
    maximum - 1000

    For more details on setting Sauce Labs environment specific settings in Testsigma, refer to the
    documentation on setting Sauce Labs environment-specific settings(step timeout, maximum test duration)
    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.maxDurationInteger3600

    minimum - 0
    default - 3600
    maximum - 10800
    For more details on setting Sauce Labs environment specific settings in Testsigma, refer to the
    documentation on setting Sauce Labs environment-specific settings(step timeout, maximum test duration)

    Environment Customizations in Testsigma Labs

    Section titled “Environment Customizations in Testsigma Labs”
    DescriptionCapabilityData TypeValue
    Setting the Timezone of the execution EnvironmenttimeZoneStringMadrid
    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 with space
    Getting Excecution Console log of each urlextendedDebuggingBooleanTrue

    For more details on enabling Browser Console debudding logs, refer to the
    documentation on enabling browser console debugging logs

    Environment Customizations in BrowserStack

    Section titled “Environment Customizations in BrowserStack”
    DescriptionCapabilityData TypeValue
    Enable Visual Logs in BrowserStackbrowserstack.debugBooleantrue
    Enable Local Testing in BrowserStackbrowserstack.localBooleantrue
    Enable Browser Console logs in BrowserstackStringwarnings

    For more details on enabling Browser Console debudding logs, refer to the
    documentation on enabling browser console debugging logs

    DescriptionCapabilityData TypeValue
    Persist App data in local Android devices across Hybrid Test sessionsnoResetbooleantrue
    Automatically grant required app permissions based on the Android manifest during installation.autoGrantPermissionsbooleantrue

    DescriptionCapabilityData TypeValue
    Automatically approve all permission pop-ups, including privacy access requests for location, contacts, and photos.autoAcceptAlertsbooleantrue
    Automatically dismiss all permission pop-ups, including privacy access permissions like location, contacts, and photos.autoDismissAlertsbooleantrue