# How to execute katalon studio's test suite on google chrome with custom chrome profile

**URL:** <https://forum.katalon.com/t/how-to-execute-katalon-studios-test-suite-on-google-chrome-with-custom-chrome-profile/92508>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [July 6, 2023, 3:44am UTC](https://forum.katalon.com/t/how-to-execute-katalon-studios-test-suite-on-google-chrome-with-custom-chrome-profile/92508 "2023-07-06T03:44:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![ddulgoontur](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/ddulgoontur/32/23870_2.png) [@ddulgoontur](https://forum.katalon.com/u/ddulgoontur)\
**Post date:** [July 6, 2023, 3:44am UTC](https://forum.katalon.com/t/how-to-execute-katalon-studios-test-suite-on-google-chrome-with-custom-chrome-profile/92508/1 "2023-07-06T03:44:35Z")

</div>

_ **How to execute katalon studio’s test suite on google chrome with custom chrome profile?** _

My website uses OTP to login, so I decided to use custom chrome profile to my test case. In order to execute my test suite, I need to close all the other active browsers. So, when I try to execute data driven testing in test suite, after the 1st successful test the browser creates new window to execute 2nd test. But I need browser to close after the 1st test, then opens new window to complete successful data driven test. How to make this happen?

---

<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 6, 2023, 4:35am UTC](https://forum.katalon.com/t/how-to-execute-katalon-studios-test-suite-on-google-chrome-with-custom-chrome-profile/92508/2 "2023-07-06T04:35:26Z")

</div>

Katalon Studio does not offer any built-in solution to your requirement.

You need a custom solution. Here is mine:

> **[ChromeDriverFactory](https://kazurayam.github.io/chromedriverfactory/)**
>
> A Java library that enables you to launch Selenium ChromeDriver with an existing user Profile. You can carry cookies over multiple HTTP sessions via user Profile.

You need to download the chromedriverfactory-0.6.6.jar from [Release Granting JavaScript for Access to Clipboard · kazurayam/chromedriverfactory · GitHub](https://github.com/kazurayam/chromedriverfactory/releases/tag/0.6.6) and locate it in the `Drivers` folder of a Katlaon project.

Please be informed that you no longer use the `WebUI.openBrowser()` keyword to launch Chrome browser.

Instead, you want to call the API of the chromedriverfactory library directly to get an instance of `org.openqa.selenium.WebDriver’ to start a Chrome browser with custom user profile.

And you would want to do like this:

```auto
ChromeDriverFactory factory = ChromeDriverFactory.newChromeDriverFactory()
LaunchedChromeDriver launched = factory.newChromeDriver(
                new UserProfile("Picasso"),
                ChromeDriverFactory.UserDataAccess.TO_GO)
WebDriver driver = launched.getDriver()
...
DriverFactory.changeWebDriver(driver)
WebUI.navigateToUrl("http://example.com")
...

```

A call to `DriverFactory.changeWebDriver(driver)` is important. It will enable you to use `WebUI.*` keywords via the Chrome browser with a custom user profile.
