Using `new ChromeOptions()` is preferred to `DesiredCapabilities.chrome()`

Hi,

Please help me. This message is showing in my Katalon Test Scripts execution in Jenkins.
What should I do? How do I change to “new ChromeOptions()”?

Jun 19, 2019 1:07:44 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using new ChromeOptions() is preferred to DesiredCapabilities.chrome()
Starting ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}) on port 21340
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1560920867.173][WARNING]: This version of ChromeDriver has not been tested with Chrome version 75.
Jun 19, 2019 1:07:48 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Jun 19, 2019 1:08:16 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using new ChromeOptions() is preferred to DesiredCapabilities.chrome()
Starting ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}) on port 3673
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1560920898.011][WARNING]: This version of ChromeDriver has not been tested with Chrome version 75.
Jun 19, 2019 1:08:19 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Jun 19, 2019 1:08:51 PM org.openqa.selenium.remote.DesiredCapabilities chrome
INFO: Using new ChromeOptions() is preferred to DesiredCapabilities.chrome()
Starting ChromeDriver 74.0.3729.6 (255758eccf3d244491b8a1317aa76e1ce10d57e9-refs/branch-heads/3729@{#29}) on port 40396
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
[1560920932.696][WARNING]: This version of ChromeDriver has not been tested with Chrome version 75.
Jun 19, 2019 1:08:54 PM org.openqa.selenium.remote.ProtocolHandshake createSession
INFO: Detected dialect: OSS
Finished: SUCCESS

hi,

you don’t need to care about that, there are one INFO and one warning, not the error

Thank you :slight_smile:

Hai @Timo_Kuisma

I have same problem, in my case can’t open browser.
how to fix?

detail error below :
INFO: Using new ChromeOptions() is preferred to DesiredCapabilities.chrome()
2019-12-19 10:23:43.708 INFO c.k.k.core.webui.driver.DriverFactory - Action delay is set to 0 seconds
Starting ChromeDriver 77.0.3865.40 (f484704e052e0b556f8030b65b953dce96503217-refs/branch-heads/3865@{#442}) on port 17396
Only local connections are allowed.
Please protect ports used by ChromeDriver and related test frameworks to prevent access by malicious code.
2019-12-19 10:23:46.404 ERROR c.k.k.core.keyword.internal.KeywordMain - :x: Unable to open browser with url: ‘’ (Root cause: 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:60)
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 Seller_InstantOrder.run(Seller_InstantOrder:6)
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:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
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 TempTestCase1576725819574.run(TempTestCase1576725819574.groovy:23)
Caused by: org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 77
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘MACBOOKHODBS07.local’, ip: ‘fe80:0:0:0:c57:ede0:607d:c26b%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.6’, java.version: ‘1.8.0_181’
Driver info: driver.version: CChromeDriver
remote stacktrace: 0 chromedriver 0x000000010d870f09 chromedriver + 3694345
1 chromedriver 0x000000010d7fdfd3 chromedriver + 3223507
2 chromedriver 0x000000010d59d58f chromedriver + 730511
3 chromedriver 0x000000010d50310b chromedriver + 98571
4 chromedriver 0x000000010d4ff22a chromedriver + 82474
5 chromedriver 0x000000010d52cb71 chromedriver + 269169
6 chromedriver 0x000000010d529e83 chromedriver + 257667
7 chromedriver 0x000000010d50523d chromedriver + 107069
8 chromedriver 0x000000010d5061d5 chromedriver + 111061
9 chromedriver 0x000000010d82c07f chromedriver + 3412095
10 chromedriver 0x000000010d838ced chromedriver + 3464429
11 chromedriver 0x000000010d838a78 chromedriver + 3463800
12 chromedriver 0x000000010d80b959 chromedriver + 3279193
13 chromedriver 0x000000010d839548 chromedriver + 3466568
14 chromedriver 0x000000010d8201b7 chromedriver + 3363255
15 chromedriver 0x000000010d857474 chromedriver + 3589236
16 chromedriver 0x000000010d876ce7 chromedriver + 3718375
17 libsystem_pthread.dylib 0x00007fff798712eb _pthread_body + 126
18 libsystem_pthread.dylib 0x00007fff79874249 _pthread_start + 66
19 libsystem_pthread.dylib 0x00007fff7987040d thread_start + 13

at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:19)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:147)
at com.kms.katalon.selenium.driver.CChromeDriver.<init>(CChromeDriver.java:13)
at com.kms.katalon.core.webui.driver.DriverFactory.createNewChromeDriver(DriverFactory.java:348)
at com.kms.katalon.core.webui.driver.DriverFactory.startNewBrowser(DriverFactory.java:309)
at com.kms.katalon.core.webui.driver.DriverFactory.openWebDriver(DriverFactory.java:207)
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:60)
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 Script1575864205218.run(Script1575864205218.groovy:6)
... 11 more

)
2019-12-19 10:23:46.435 ERROR c.k.katalon.core.main.TestCaseExecutor - :x: Test Cases/motordev2/Seller_InstantOrder FAILED.
Reason:
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:60)
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 Seller_InstantOrder.run(Seller_InstantOrder:6)
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:337)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:328)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:307)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:299)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:233)
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 TempTestCase1576725819574.run(TempTestCase1576725819574.groovy:23)
Caused by: org.openqa.selenium.SessionNotCreatedException: session not created: This version of ChromeDriver only supports Chrome version 77
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘MACBOOKHODBS07.local’, ip: ‘fe80:0:0:0:c57:ede0:607d:c26b%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86_64’, os.version: ‘10.14.6’, java.version: ‘1.8.0_181’
Driver info: driver.version: CChromeDriver
remote stacktrace: 0 chromedriver 0x000000010d870f09 chromedriver + 3694345
1 chromedriver 0x000000010d7fdfd3 chromedriver + 3223507
2 chromedriver 0x000000010d59d58f chromedriver + 730511
3 chromedriver 0x000000010d50310b chromedriver + 98571
4 chromedriver 0x000000010d4ff22a chromedriver + 82474
5 chromedriver 0x000000010d52cb71 chromedriver + 269169
6 chromedriver 0x000000010d529e83 chromedriver + 257667
7 chromedriver 0x000000010d50523d chromedriver + 107069
8 chromedriver 0x000000010d5061d5 chromedriver + 111061
9 chromedriver 0x000000010d82c07f chromedriver + 3412095
10 chromedriver 0x000000010d838ced chromedriver + 3464429
11 chromedriver 0x000000010d838a78 chromedriver + 3463800
12 chromedriver 0x000000010d80b959 chromedriver + 3279193
13 chromedriver 0x000000010d839548 chromedriver + 3466568
14 chromedriver 0x000000010d8201b7 chromedriver + 3363255
15 chromedriver 0x000000010d857474 chromedriver + 3589236
16 chromedriver 0x000000010d876ce7 chromedriver + 3718375
17 libsystem_pthread.dylib 0x00007fff798712eb _pthread_body + 126
18 libsystem_pthread.dylib 0x00007fff79874249 _pthread_start + 66
19 libsystem_pthread.dylib 0x00007fff7987040d thread_start + 13

at org.openqa.selenium.remote.W3CHandshakeResponse.lambda$errorHandler$0(W3CHandshakeResponse.java:62)
at org.openqa.selenium.remote.HandshakeResponse.lambda$getResponseFunction$0(HandshakeResponse.java:30)
at org.openqa.selenium.remote.ProtocolHandshake.lambda$createSession$0(ProtocolHandshake.java:126)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:128)
at org.openqa.selenium.remote.ProtocolHandshake.createSession(ProtocolHandshake.java:74)
at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:136)
at org.openqa.selenium.remote.service.DriverCommandExecutor.execute(DriverCommandExecutor.java:83)
at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)
at com.kms.katalon.selenium.driver.CChromeDriver.execute(CChromeDriver.java:19)
at org.openqa.selenium.remote.RemoteWebDriver.startSession(RemoteWebDriver.java:213)
at org.openqa.selenium.remote.RemoteWebDriver.<init>(RemoteWebDriver.java:131)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:181)
at org.openqa.selenium.chrome.ChromeDriver.<init>(ChromeDriver.java:147)
at com.kms.katalon.selenium.driver.CChromeDriver.<init>(CChromeDriver.java:13)
at com.kms.katalon.core.webui.driver.DriverFactory.createNewChromeDriver(DriverFactory.java:348)
at com.kms.katalon.core.webui.driver.DriverFactory.startNewBrowser(DriverFactory.java:309)
at com.kms.katalon.core.webui.driver.DriverFactory.openWebDriver(DriverFactory.java:207)
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)
... 17 more

regards,

hello,

try to update your chrome driver by Katalon Studio tool

Hi @Timo_Kuisma1

This work after update chromedriver. but i have mobile testing in one project, when running testing mobile. the Katalon have trouble chromedriver version and appium.
I’m try update to latest chrome driver and appium in 1.13.0

regards,
ninja