How to open Chrome in incognito mode using Tosca

In this article, we will discuss How to open Chrome in incognito mode using Tosca. In most cases, the script should be run in incognito mode because in incognito mode, browser cache is not stored and the result would be accurate

In Tosca, we can open Google Chrome incognito using 2 standard modules, and based on the usage you can use any of the ways mentioned below

  1. Open Chrome in incognito mode using the TBox Start Program in Tosca
  2. Open Chrome in incognito mode using OpenUrl in Tosca
Open Chrome in incognito mode using the TBox Start Program in Tosca

Step 1: You can find the TBox Start program in this path standard modules -> TBox Automation Tools -> Process operations -> TBox Start Program. Add this to your test case

TBox Start Program Path

Step 2: In the module put the chrome application path in the Path field and in Argument pass the website URL and -incognito to open the URL in incognito

  • Path : C:\Program Files\Google\Chrome\Application\chrome.exe
  • Argument: https://demowebshop.tricentis.com/
  • Argument: -incognito
TBox Start Program Entry

Step 3: Run the script and observe the website opened in an incognito

Open Chrome in incognito mode using OpenUrl in Tosca

Step 1: You can find the OpenURL standard module in this path standard modules -> TBox XEngines -> Html -> OpenUrl. Add this to your test case

OpenUrl standard module

Step 2: In the Test configuration parameter, add Browser as the parameter name and change the value to Chrome

Browser TCP configuration

Step 3: In OpenUrl, add below configurations

  • Url : -incognito https://demowebshop.tricentis.com/
OpenUrl Tess Step Configuration

Step 4: While running the above step Url will get opened in the chrome incognito

Let us know your queries related to Tosca

Leave a comment