Run Browser in Incognito/Private mode


Desired Capabilities allow you to customise the test environment by adding browser extensions, setting geographical locations, and bypassing alerts. Testsigma enables you to run tests in Incognito/Private mode to ensure a clean testing space. This guide helps you easily configure your testing environment for this mode.


Prerequisites

Before starting testing in Incognito/Private Mode, you must understand specific concepts, such as creating Test Cases and Test Plans, managing Ad-hoc runs and Test Machines in Testsigma.


Desired Capabilities for Incognito or Private Browser

Use the following Desired Capabilities to enable Incognito or Private mode:

Capability - Key Data Type Value Function
testsigma.privateBrowsing Boolean True The selected browser will be launched in incognito or private mode
testsigma.privateBrowsing Boolean False The selected browser will be launched in Normal mode
No Capability Boolean False The selected browser will be launched in Normal mode
NOTE:

Google Chrome, Mozilla Firefox, and Microsoft Edge support the desired capabilities for Incognito/Private Tab Browsers.


Adding Desired Capabilities in Test Case

  1. Click Run in the top right corner of the screen on the Test Case details page.
  2. In the Ad-hoc Run screen, you should select Test Lab and Test Machine. Then, you can click on Desired Capabilities (Optional).
  3. Enter testsigma.privateBrowsing in the key. Select Boolean as the data type and enter true for the value in the Desired Capabilities field.
  4. Click Run Now to execute the Incognito/Private tab test steps. Add capabilities in Test Case

Adding Desired Capabilities in Test Plan

  1. Navigate to the Test Machines & Suites Selection tab on the Create or Edit Test Plan page.
  2. Clicking Add Machine/Device allows you to add a test machine. You can edit existing machines by clicking Test Machine Settings.
  3. On the Add or Edit test machine/device profile screen, enter the machine's name, select a lab, and select a machine from the drop-down list. Click on Desired Capabilities (Optional).
  4. Enter testsigma.privateBrowsing in the key. Select Boolean as the data type and enter true for the value in the Desired Capabilities field. Then click Create/ Update profile to save the configuration.
  5. Click Create/Update to save and update the test plan. Add capabilities in Test Plan