# Problem while opening Firefox in private mode

**URL:** <https://forum.robotframework.org/t/problem-while-opening-firefox-in-private-mode/8409>\
**Category:** Robot Framework\
**Created:** [5 February 2025 15:28 UTC](https://forum.robotframework.org/t/problem-while-opening-firefox-in-private-mode/8409 "2025-02-05T15:28:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![DulguunNYA](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/dulguunnya/32/4526_2.png) [@DulguunNYA](https://forum.robotframework.org/u/DulguunNYA)\
**Post date:** [5 February 2025 15:28 UTC](https://forum.robotframework.org/t/problem-while-opening-firefox-in-private-mode/8409/1 "2025-02-05T15:28:25Z")

</div>

When i launch my test in private mode an url  
it connect direclty with my user account ,

${options}= Evaluate sys.modules[‘selenium.webdriver’].FirefoxOptions() sys, selenium  
Call Method ${options} add\_argument -private  
Open Browser ${AppURL} ${BROWSER} options=${options}

anyone has encoutered/fixed this issues ?

---

<div class="post-metadata">

**Author:** ![HelioGuilherme66](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/helioguilherme66/32/34_2.png) [@HelioGuilherme66](https://forum.robotframework.org/u/HelioGuilherme66)\
**Post date:** [5 February 2025 16:44 UTC](https://forum.robotframework.org/t/problem-while-opening-firefox-in-private-mode/8409/2 "2025-02-05T16:44:25Z")

</div>

Some problems in your question, but the problem you want.

You don’t say the error you have (usually a copy of the output suffices).

You are mixing the way to pass options to webdriver (SeleniumLibrary). Try to find the newest documentation for the library, because you are defining options like it was in the past to call `Create Webdriver` and now we use simply the [Open Browser](https://robotframework.org/SeleniumLibrary/SeleniumLibrary.html#Open%20Browser).

---

<div class="post-metadata">

**Author:** ![falcon030](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/falcon030/32/3420_2.png) [@falcon030](https://forum.robotframework.org/u/falcon030)\
**Post date:** [5 February 2025 16:55 UTC](https://forum.robotframework.org/t/problem-while-opening-firefox-in-private-mode/8409/3 "2025-02-05T16:55:42Z")

</div>

Every time you start Firefox through selenium webdriver it creates a brand new anonymous profile, _so you are actually browsing privately_.

---

<div class="post-metadata">

**Author:** ![DulguunNYA](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/dulguunnya/32/4526_2.png) [@DulguunNYA](https://forum.robotframework.org/u/DulguunNYA)\
**Post date:** [6 February 2025 09:23 UTC](https://forum.robotframework.org/t/problem-while-opening-firefox-in-private-mode/8409/4 "2025-02-06T09:23:31Z")

</div>

There is no OUTPUT error message ,  
The problem is when i enter a website like office365 it connects me with my user account and that is not wanted that’s why i specified private mode

---

<div class="post-metadata">

**Author:** ![DulguunNYA](https://dub1.discourse-cdn.com/flex005/user_avatar/forum.robotframework.org/dulguunnya/32/4526_2.png) [@DulguunNYA](https://forum.robotframework.org/u/DulguunNYA)\
**Post date:** [1 April 2025 09:32 UTC](https://forum.robotframework.org/t/problem-while-opening-firefox-in-private-mode/8409/5 "2025-04-01T09:32:44Z")

</div>

Problem partially solved , my company added some policy that interact with firefox and force the connection immediatly
