- desired capabilities
Most Common Desired Capabilities
Browser Console Debug Logs
Geolocation Emulation
Bypass Unsafe Download Prompt
Geolocation for Chrome & Firefox
Custom User Profile in Chrome
Emulate Mobile Devices (Chrome)
Add Chrome Extension
Network Throttling
Network Logs
Biometric Authentication
Enable App Resigning in iOS
Enable Capturing Screenshots (Android & iOS)
Configure Android WebViews
Incognito/Private mode
Set Google Play Store Credentials
Basic Authentication [Safari]
Automating Basic Authentication in Safari
Safari restricts automated Basic Authentication login by blocking credentials in the URL format, which is a challenge in automation testing. In Testsigma, you can bypass this limitation using an encoded Authorization header in the desired capabilities. This article discusses generating the necessary authorization token and configuring capabilities.
Prerequisites
Before you begin, ensure that you have referred to:
Generate the Authorization Header
- Navigate to Basic Auth Header Generator.
-
Enter your username and password to generate the Authorization Header.

Adding the Capability
- On the Test Case Details page, click Run.

-
In the Ad-Hoc Run overlay,
- Select available macOS, Version, Browser, and Resolution.

-
Enter testsigma.customHeaders in the Key field, select String as Data type, and set the Value as per the generated Authorization Header.

Value Format:
{ "Authorization": "Basic <token>" }
- Select available macOS, Version, Browser, and Resolution.
- Click Run Now to execute the test case.

- After execution completes, refer to the screenshot captured at the test step level.

This capability is available only for the Safari browser.