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

I am no longer able to run my Katalon Studio v 6.2.1 scripts after my new Firefox profile changed to path at:
When I try to run my scripts, I get a prompt showing that Katalon is using the temporary profile path at:

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

1 Like

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.

1 Like

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

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)

    I created a new firefox profile and called it Katalon and then used Katalon for the Value above. Ensure your certs are available in the chosen profile.

  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 {
def void startBrowser() {
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

  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.