# Opening Firefox with a Specific, non anonymous profile

**URL:** <https://forum.katalon.com/t/opening-firefox-with-a-specific-non-anonymous-profile/12012>\
**Category:** Feature Request\
**Tags:** feature-request, katalon-studio\
**Created:** [July 12, 2018, 1:03pm UTC](https://forum.katalon.com/t/opening-firefox-with-a-specific-non-anonymous-profile/12012 "2018-07-12T13:03:57Z")\
**Posts on this page:** 1\
**Showing post:** 7

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [July 18, 2018, 5:22am UTC](https://forum.katalon.com/t/opening-firefox-with-a-specific-non-anonymous-profile/12012/7 "2018-07-18T05:22:23Z")

</div>

I will describe what I have found.

I made 2 Firefox profiles: usualProfile and seleniumProfile:  
 ![](https://s3.amazonaws.com/katalon-forum/editor/u8/9nb29fmnjd9u.png)

By clicking “start firefox” button with seleniumProfile selected, I got the following “about:profiles” page. Please note that a Green Extension icon is displayed. **This Green icon indicates that Firefox is opened with seleniumProfile.**  
 ![](https://s3.amazonaws.com/katalon-forum/editor/qx/fqqpwtv6ro9r.png)

In the “firefox.exe -P” dialog I selected usualProfile.  
 ![](https://s3.amazonaws.com/katalon-forum/editor/6o/mgs25to9x8z0.png)

Then, By clicking “start firefox” button with usualProfile selected, I got the following “about:profiles” page. Please note that a Red Extension icon is displayed and no Green icon there. **This Red icon indicates that Firefox is opened with usualProfile.**  
 ![](https://s3.amazonaws.com/katalon-forum/editor/du/a02sk9ezeyrb.png)

Now, I go back to Katalon Studio, executed the following testcase:

```auto
import org.openqa.selenium.WebDriver
import org.openqa.selenium.firefox.FirefoxDriver
import org.openqa.selenium.firefox.FirefoxOptions
import org.openqa.selenium.firefox.FirefoxProfile
import org.openqa.selenium.firefox.internal.ProfilesIni
import com.kms.katalon.core.webui.driver.DriverFactory
import com.kms.katalon.core.webui.driver.WebUIDriverType
import com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords as WebUI
//WebUI.openBrowser('')
WebUIDriverType executedBrowser = DriverFactory.getExecutedBrowser()
switch(executedBrowser) {
    case WebUIDriverType.FIREFOX_DRIVER: // "Firefox"
        ProfilesIni profile = new ProfilesIni();
        FirefoxProfile FF = profile.getProfile("seleniumProfile");
        FirefoxOptions options = new FirefoxOptions().setProfile(FF); System.setProperty('webdriver.gecko.driver', DriverFactory.getGeckoDriverPath())
        WebDriver driver = new FirefoxDriver(options);
        // let Katalon Studio to use the WebDriver created here
        DriverFactory.changeWebDriver(driver)
        break
}
WebUI.navigateToUrl('http://demoaut.katalon.com/')

//WebUI.closeBrowser()

```

Then I got the following “about:profiles” page displayed:

![](https://s3.amazonaws.com/katalon-forum/editor/sw/soko2rrdllhc.png)

Please find

(1) On the top-right of the window, I find a Green extension icon. This Green icon indicates that the Firefox is opened with the **seleniumProfile**.

(2) However the “about:profiles” page is saying that the **usualProfile** is in use.  
**\_  
Inconsistent!\_**

I think that

(a) Firefox browser is actually opened with seleniumProfile which I specified through WebDriver call. The test case code ran successful

(b) The “about:profiles” page displays some static information which can be visualized by “firefox.exe -P” command. The “about:profiles” page shows the previous record which user profiles you clicked and selected in the UI for the last time. The “about:profiles” does not displays dynamic status which Profiles has been applied by WebDriver to the current Forefox process.

-----

So, my lesson is that **“about:profiles” of Firefox does not tell me the truth (which user profile is applied) when Firefox is opened by WebDriver**.

[19122\_i\_have\_2\_firefox\_profiles.png](https://s3.amazonaws.com/katalon-forum/editor/u8/9nb29fmnjd9u.png)

[19122\_seleniumProfile\_applied.png](https://s3.amazonaws.com/katalon-forum/editor/qx/fqqpwtv6ro9r.png)

[19122\_usualProfile\_applied\_2.png](https://s3.amazonaws.com/katalon-forum/editor/du/a02sk9ezeyrb.png)

[19122\_select\_usualProfile.png](https://s3.amazonaws.com/katalon-forum/editor/6o/mgs25to9x8z0.png)

[19122\_Firefox\_opened\_by\_webdriver\_shows\_about-profiles\_page\_misleading.png](https://s3.amazonaws.com/katalon-forum/editor/sw/soko2rrdllhc.png)

---

_[View the full topic](https://forum.katalon.com/t/opening-firefox-with-a-specific-non-anonymous-profile/12012)._
