Katalon Studio error Unable to open browser with url: ''

Johny picture Johny · Apr 29, 2019 · Viewed 7.5k times · Source

I'm new to Katalon Studio and I want to do some simple web-tests. So I try to open browser, but always getting error Unable to open browser with url: '' It doesnt work with both chrome and firefox browsers. However when I try to run it in Web Recorder it works perfect with both browsers

I already tried to add

{“CHROME_DRIVER”:{“args”:["–no-sandbox","–disable-infobars"]}} 

as it was mentioned in threads with the same error

If someone help, I would be glad

WebUI.openBrowser("")
// some code
WebUI.closeBrowser()

Full error:

com.kms.katalon.core.exception.StepFailedException: Unable to open browser with url: ''
    at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)
    at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:26)
    at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.openBrowser(OpenBrowserKeyword.groovy:81)
    at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.execute(OpenBrowserKeyword.groovy:67)
    at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
    at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.openBrowser(WebUiBuiltInKeywords.groovy:60)
    at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$openBrowser.call(Unknown Source)
    at new_case.run(new_case:16)
    at com.kms.katalon.core.main.ScriptEngine.run(ScriptEngine.java:194)
    at com.kms.katalon.core.main.ScriptEngine.runScriptAsRawText(ScriptEngine.java:119)
    at com.kms.katalon.core.main.TestCaseExecutor.runScript(TestCaseExecutor.java:336)
    at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:327)
    at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:306)
    at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:298)
    at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:232)
    at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:114)
    at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:105)
    at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)
    at TempTestCase1556561167193.run(TempTestCase1556561167193.groovy:21)
Caused by: com.kms.katalon.core.exception.StepFailedException: No driver is set for execution.
    at com.kms.katalon.core.webui.driver.DriverFactory.startNewBrowser(DriverFactory.java:213)
    at com.kms.katalon.core.webui.driver.DriverFactory.openWebDriver(DriverFactory.java:188)
    at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword$_openBrowser_closure1.doCall(OpenBrowserKeyword.groovy:74)
    at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword$_openBrowser_closure1.call(OpenBrowserKeyword.groovy)
    at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.runKeyword(WebUIKeywordMain.groovy:20)
    at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.openBrowser(OpenBrowserKeyword.groovy:81)
    at com.kms.katalon.core.webui.keyword.builtin.OpenBrowserKeyword.execute(OpenBrowserKeyword.groovy:67)
    at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:56)
    at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.openBrowser(WebUiBuiltInKeywords.groovy:60)
    at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$openBrowser.call(Unknown Source)
    at Script1556556645291.run(Script1556556645291.groovy:16)
    ... 11 more

Answer

Rishabh Kumar picture Rishabh Kumar · Oct 30, 2019

Just update your chrome drive from tools->Update WebDrivers -> chrome