I used firefox profile path instead of getting firefox profile through ProfilesIni. Don’t know why but getting profiles via Ini is giving me a memory error.
WebUIDriverType executedBrowser = DriverFactory.getExecutedBrowser()if (executedBrowser == WebUIDriverType.FIREFOX_DRIVER) { KeywordUtil.logInfo("Using Firefox Profile") FirefoxProfile FF = new FirefoxProfile(new File(GlobalVariable.firefoxProfilePath)); FirefoxOptions options = new FirefoxOptions().setProfile(FF) WebDriver driver = new FirefoxDriver(options) DriverFactory.changeWebDriver(driver)}else{ WebUI.openBrowser('')}