Unable to open browser

Hello, @Timo_Kuisma and thanks for the reply.

Here is the content of com.kms.katalon.core.webui.chrome.properties file:

{“CHROME_DRIVER”:{“allow-running-insecure-content”:"",“auto-open-devtools-for-tabs”:"",“args”:[“allow-running-insecure-content”,“zz_auto-open-devtools-for-tabs”,“disable-infobars”,“start-maximized”]}}

You mean to change that to this?

{“CHROME_DRIVER”:{“allow-running-insecure-content”:"",“auto-open-devtools-for-tabs”:"",“args”:[“allow-running-insecure-content”,“zz_auto-open-devtools-for-tabs”,“disable-infobars”,“start-maximized”,“no-sandbox”]}}

hi,

this is needed 
--no-sandbox
did it work without hyphens?

Both this:

{“CHROME_DRIVER”:{“allow-running-insecure-content”:"",“auto-open-devtools-for-tabs”:"",“args”:[“allow-running-insecure-content”,“zz_auto-open-devtools-for-tabs”,“disable-infobars”,“start-maximized”, “--no-sandbox” ]}}

and this:

{“CHROME_DRIVER”:{“allow-running-insecure-content”:"",“auto-open-devtools-for-tabs”:"",“args”:[“allow-running-insecure-content”,“zz_auto-open-devtools-for-tabs”,“disable-infobars”,“start-maximized”, “no-sandbox” ]}}

haven’t worked.

I want to mention again, that same projects run perfectly on Windows 10, but fail on Ubuntu. At the same time, Katalon GET/POST API calls also work correctly on Ubuntu, the problem is only with opening browser.

hyphen should be in all properties

check here
https://peter.sh/experiments/chromium-command-line-switches/
try first with these properties only
{"CHROME_DRIVER":{"args":["--no-sandbox","--disable-infobars"]}}

same result for

hi,

sorry my eyes, add properties here as you are running headless
com.kms.katalon.core.webui.chrome (headless).properties
{"HEADLESS_DRIVER”:{“args”:["–no-sandbox","–disable-infobars"]}}

you can download new chrome driver and use it instead of default

ChromeOptions options = new ChromeOptions();
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
System.setProperty("webdriver.chrome.driver", "C:\\Users\\xxxx\\Desktop\\driver\\chromedriver.exe");
ChromeDriver driver = new ChromeDriver(capabilities);
DriverFactory.changeWebDriver(driver)
WebUI.openBrowser('')
WebUI.navigateToUrl('http://www.google.com')
WebUI.closeBrowser()

this file com.kms.katalon.core.webui.chrome (headless).properties doesn’t exist, but when I create it and pass your args still I get failings

hi,

did you tried with another chrome driver?

Hi.

Sorry for late response.
I have downloaded Chrome Driver.
Added this lines to code:

import org.openqa.selenium.chrome.ChromeDriver
import org.openqa.selenium.chrome.ChromeOptions
import org.openqa.selenium.remote.DesiredCapabilities
ChromeOptions options = new ChromeOptions();
DesiredCapabilities capabilities = new DesiredCapabilities();
capabilities.setCapability(ChromeOptions.CAPABILITY, options);
System.setProperty(“webdriver.chrome.driver”, “/home/tigran-sargsyan/_ZoomAdmin/za.testing/tests/chromedriver”);
ChromeDriver driver = new ChromeDriver(capabilities);
DriverFactory.changeWebDriver(driver)

Still get this error:

Error Log

2019-02-21 16:32:29.690 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: driver = new org.openqa.selenium.chrome.ChromeDriver(capabilities) FAILED.
Reason:
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=73.0.3683.20 (8e2b610813e167eee3619ac4ce6e42e3ec622017),platform=Linux 4.15.0-45-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 49.68 seconds
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’
System info: host: ‘xubuntu-desktop’, ip: ‘127.0.1.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.15.0-45-generic’, java.version: ‘1.8.0_201’
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:142)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:147)
at 01 - Test_HomePage_Elements_Visibility.run(01 - Test_HomePage_Elements_Visibility:60)
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:328)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:319)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:298)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:290)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:224)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:149)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1550752267072.run(TempTestSuite1550752267072.groovy:36)

2019-02-21 16:32:29.782 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/App_Tests/Home_PageTests/01 - Test_HomePage_Elements_Visibility FAILED.
Reason:
org.openqa.selenium.WebDriverException: unknown error: Chrome failed to start: exited abnormally
(unknown error: DevToolsActivePort file doesn’t exist)
(The process started from chrome location /usr/bin/google-chrome is no longer running, so ChromeDriver is assuming that Chrome has crashed.)
(Driver info: chromedriver=73.0.3683.20 (8e2b610813e167eee3619ac4ce6e42e3ec622017),platform=Linux 4.15.0-45-generic x86_64) (WARNING: The server did not provide any stacktrace information)
Command duration or timeout: 49.68 seconds
Build info: version: ‘3.7.1’, revision: ‘8a0099a’, time: ‘2017-11-06T21:07:36.161Z’
System info: host: ‘xubuntu-desktop’, ip: ‘127.0.1.1’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘4.15.0-45-generic’, java.version: ‘1.8.0_201’
Driver info: driver.version: ChromeDriver
at org.openqa.selenium.remote.ErrorHandler.createThrowable(ErrorHandler.java:214)
at org.openqa.selenium.remote.ErrorHandler.throwIfResponseFailed(ErrorHandler.java:166)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$new$0(JsonWireProtocolResponse.java:53)
at org.openqa.selenium.remote.JsonWireProtocolResponse.lambda$getResponseFunction$2(JsonWireProtocolResponse.java:91)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:123)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:73)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:142)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:600)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:219)
at org.openqa.selenium.remote.RemoteWebDriver.(RemoteWebDriver.java:142)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.(ChromeDriver.java:147)
at 01 - Test_HomePage_Elements_Visibility.run(01 - Test_HomePage_Elements_Visibility:60)
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:328)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:319)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:298)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:290)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:224)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestCaseMainPhase(TestSuiteExecutor.java:129)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:112)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:81)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:149)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1550752267072.run(TempTestSuite1550752267072.groovy:36)

2019-02-21 16:32:29.827 INFO c.k.katalon.core.main.TestCaseExecutor - END Test Cases/App_Tests/Home_PageTests/01 - Test_HomePage_Elements_Visibility

I have the same problem

Were you using Chrome from Google or Chromium?

I once got a similar issue and solved it by giving more right to the user on the very folder containing the chrome-driver… Unexpected.

Chrome from Google.

@Boris_Faitout where how to find default chrome-driver path on linux? I have also tried to download manualy and adding it’s path in script, but failed

@tigran.sargsyan, I think the path of chrome-driver is
//YOUR-KATALON-FOLDER/configuration/resources/drivers/chromedriver_linus64/chromedriver

as for chrome itself, it generaly lies in /usr/bin/google-chrome

Chrome driver path is in correct way.
last Friday was all good. this morning suddenly doesn’t work at all. I did not change anything on the same test case

Last Friday, Chrome v74 has announced and please refer to my post,

1 Like

I closed this because it is inactive