# How do I get Katalon Studio version 6.2.1 to use my new Firefox profile path?

**URL:** <https://forum.katalon.com/t/how-do-i-get-katalon-studio-version-6-2-1-to-use-my-new-firefox-profile-path/36190>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [November 12, 2019, 10:35pm UTC](https://forum.katalon.com/t/how-do-i-get-katalon-studio-version-6-2-1-to-use-my-new-firefox-profile-path/36190 "2019-11-12T22:35:26Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![jonesste](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jonesste/32/16103_2.png) [@jonesste](https://forum.katalon.com/u/jonesste)\
**Post date:** [November 12, 2019, 10:35pm UTC](https://forum.katalon.com/t/how-do-i-get-katalon-studio-version-6-2-1-to-use-my-new-firefox-profile-path/36190/1 "2019-11-12T22:35:26Z")

</div>

I am no longer able to run my Katalon Studio v 6.2.1 scripts after my new Firefox profile changed to path at:  
C:\Users\myuserid\AppData\Roaming\Mozilla\Firefox\Profiles\firefox.Default  
When I try to run my scripts, I get a prompt showing that Katalon is using the temporary profile path at:  
C:\Users\myuserid\AppData\Local\Temp\rust\_mozprofile…

Is there a way to override or reconfigure the temporary profile path that Katalon wants to use?

---

<div class="post-metadata">

**Author:** ![jonesste](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jonesste/32/16103_2.png) [@jonesste](https://forum.katalon.com/u/jonesste)\
**Post date:** [December 18, 2019, 11:03pm UTC](https://forum.katalon.com/t/how-do-i-get-katalon-studio-version-6-2-1-to-use-my-new-firefox-profile-path/36190/2 "2019-12-18T23:03:51Z")

</div>

Does anyone know if I’m using the parameters below correctly for updating the Web Browser Parameters for FF via the Katalon Studio Preferences \> Web Browser:

1. -profile “C:\Users\myuserid\AppData\Roaming\Mozilla\Firefox\Profiles\firefox.Default”
2. -p “C:\Users\myuserid\AppData\Roaming\Mozilla\Firefox\Profiles\firefox.Default”
3. -profile C:\Users\myuserid\AppData\Roaming\Mozilla\Firefox\Profiles\firefox.Default

Katalon Studio launches FF with a temp profile that does not recognize and is able to load my security certificates needing to run my application and I want to override the Katalon temp profile in FF with my roaming profile (or local profile) which contains the appropriate security certificates that are needed in FF to launch my application.

---

<div class="post-metadata">

**Author:** ![Russ\_Thomas](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/russ_thomas/32/11884_2.png) [@Russ\_Thomas](https://forum.katalon.com/u/Russ_Thomas)\
**Post date:** [December 19, 2019, 4:12am UTC](https://forum.katalon.com/t/how-do-i-get-katalon-studio-version-6-2-1-to-use-my-new-firefox-profile-path/36190/3 "2019-12-19T04:12:06Z")

</div>

According to the horse’s mouth, they look fine…

> **[Command line options](https://developer.mozilla.org/en-US/docs/Mozilla/Command_Line_Options)**
>
> Command line options are used to specify various startup options for Mozilla applications. This page describes the commonly used options and how to use them. You can open the command line interface by pressing shift + F2.

---

<div class="post-metadata">

**Author:** ![jonesste](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/jonesste/32/16103_2.png) [@jonesste](https://forum.katalon.com/u/jonesste)\
**Post date:** [February 6, 2020, 8:43pm UTC](https://forum.katalon.com/t/how-do-i-get-katalon-studio-version-6-2-1-to-use-my-new-firefox-profile-path/36190/4 "2020-02-06T20:43:32Z")

</div>

This issue has been fixed by my team mate (Dennis) by doing the following - this solution combines a Global Variable in a Katalon Profile with a custom keyword.

1. Add a new variable in a profile - this is done in your Katalon project, go to Tests Explorer under Profiles \> Default and set the following:  
Name = G\_FFProfile  
Value = (this is the name of your firefox profile containing your certs, extensions, bookmarks, etc. that you need to run your tests)

2. In Katalon Test Explorer, under Keywords, create a custom keyword (i.e. startBrowserWithProfile) and copy/paste/save the following code (taken from post by kazurayam) into the new custom keyword:

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  
import internal.GlobalVariable as GlobalVariable

public class startBrowserWithProfile {  
@keyword  
def void startBrowser() {  
[//WebUI.openBrowser](https://WebUI.openBrowser)(’’)  
WebUIDriverType executedBrowser = DriverFactory.getExecutedBrowser()  
switch(executedBrowser) {  
case WebUIDriverType.FIREFOX\_DRIVER: // “Firefox”  
ProfilesIni profile = new ProfilesIni();  
FirefoxProfile FF = profile.getProfile(GlobalVariable.G\_FFProfile);  
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  
}  
}  
}

1. In your Katalon script, replace the “Start Browser” keyword by selecting Add \> Custom \> Keyword and selecting the new custom keyword (i.e. startBrowserWithProfile) from the list.
