# How to run on EDGE browser in private mode

**URL:** <https://forum.katalon.com/t/how-to-run-on-edge-browser-in-private-mode/36735>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [November 24, 2019, 1:02am UTC](https://forum.katalon.com/t/how-to-run-on-edge-browser-in-private-mode/36735 "2019-11-24T01:02:33Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![rodrigocalabretta](https://avatars.discourse-cdn.com/v4/letter/r/b19c9b/32.png) [@rodrigocalabretta](https://forum.katalon.com/u/rodrigocalabretta)\
**Post date:** [November 24, 2019, 1:02am UTC](https://forum.katalon.com/t/how-to-run-on-edge-browser-in-private-mode/36735/1 "2019-11-24T01:02:33Z")

</div>

When I run Edge this browser doesn’t start in private mode so to test a login I have to logout first. How I can run this browser and set his Desired capabilities to run in private mode?

I tried this without success:

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/7/728669f0cbf36014114011623bb7914faad9fa7e.png)

---

<div class="post-metadata">

**Author:** ![shashank.gururaj](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/shashank.gururaj/32/22830_2.png) [@shashank.gururaj](https://forum.katalon.com/u/shashank.gururaj)\
**Post date:** [March 6, 2023, 6:02am UTC](https://forum.katalon.com/t/how-to-run-on-edge-browser-in-private-mode/36735/2 "2023-03-06T06:02:20Z")

</div>

In case of Edge chromium. follow this link:  
[https://docs.katalon.com/docs/create-tests/manage-projects/project-settings/desired-capabilities/start-browsers-in-private-mode-in-katalon-studio#edge-chromium](https://docs.katalon.com/docs/create-tests/manage-projects/project-settings/desired-capabilities/start-browsers-in-private-mode-in-katalon-studio#edge-chromium)

Other option is to set it programmatically:

> List edge\_list = new ArrayList();  
> edge\_list.add(‘-inprivate’)  
> Hashtable\<String, String\> edge\_dict = new Hashtable\<String, String\>();  
> edge\_dict.put(“args”, edge\_list);  
> RunConfiguration.setWebDriverPreferencesProperty(‘ms:edgeChromium’, true)  
> RunConfiguration.setWebDriverPreferencesProperty(‘ms:edgeOptions’, edge\_dict)

---

<div class="post-metadata">

**Author:** ![adecaest](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/adecaest/32/23870_2.png) [@adecaest](https://forum.katalon.com/u/adecaest)\
**Post date:** [October 9, 2024, 12:32pm UTC](https://forum.katalon.com/t/how-to-run-on-edge-browser-in-private-mode/36735/3 "2024-10-09T12:32:15Z")

</div>

I have follow the instuctions from the link

but the session won’t be started

Caused by: org.openqa.selenium.SessionNotCreatedException: Could not start a new session. Response code 404. Message: no such window  
(Session info: MicrosoftEdge=129.0.2792.79)

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/f/7/f7c81a99e1771381749882029f52ab5ceedf0801.png)

---

<div class="post-metadata">

**Author:** ![yogesh.harsh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/yogesh.harsh/32/23870_2.png) [@yogesh.harsh](https://forum.katalon.com/u/yogesh.harsh)\
**Post date:** [June 5, 2025, 1:15pm UTC](https://forum.katalon.com/t/how-to-run-on-edge-browser-in-private-mode/36735/4 "2025-06-05T13:15:37Z")

</div>

did anyone get a solution to this issue ? we re facing the same challenge and not able to switch to a desired profile using the above solution.

---

<div class="post-metadata">

**Author:** ![Monty\_Bagati](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/monty_bagati/32/33047_2.png) [@Monty\_Bagati](https://forum.katalon.com/u/Monty_Bagati)\
**Post date:** [June 19, 2025, 3:11am UTC](https://forum.katalon.com/t/how-to-run-on-edge-browser-in-private-mode/36735/5 "2025-06-19T03:11:25Z")

</div>

To use Katalon Studio with the InPrivate mode of Edge Chromium, do as follows:

1. In Katalon Studio, go to **Project \> Settings \> Desired Capabilities \> Web UI \> Edge Chromium**.
2. Add a new property as follows.

**Table 1**  
Name Type Value  
ms:edgeChromium boolean true  
ms:edgeOptions Dictionary Click More (…). In the pop-up **Dictionary Property Builder** dialog, click **Add** , then input values from Table 2.

**Table 2**  
Name Type Value  
args List -inprivate

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/5/9/594c1c41e647f1b7e75702b1a55f81b296bd579e.jpeg)

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/2/2/22073541b3fcd5cff6290ebcee45beb37b97cbcb.jpeg)
