NoSuchSessionException: invalid session id (while running from docker)

2022-05-13 04:32:25.349 WARN c.k.k.c.webui.common.WebUiCommonHelper - [SELF-HEALING] invalid session id
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘4c91e9bbfce7’, ip: ‘172.17.0.2’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘5.13.0-41-generic’, java.version: ‘1.8.0_292’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 100.0.4896.88, chrome: {chromedriverVersion: 100.0.4896.60 (6a5d10861ce8…, userDataDir: /tmp/.com.google.Chrome.raN1vj}, goog:chromeOptions: {debuggerAddress: localhost:38403}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 0611303360d61233dd753bbbdcf09b0a
*** Element info: {Using=xpath, value=//mat-checkbox[@id=‘mat-checkbox-65’]/label/span}
2022-05-13 04:32:25.359 WARN c.k.k.c.webui.common.WebUiCommonHelper - [SELF-HEALING] invalid session id
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘4c91e9bbfce7’, ip: ‘172.17.0.2’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘5.13.0-41-generic’, java.version: ‘1.8.0_292’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 100.0.4896.88, chrome: {chromedriverVersion: 100.0.4896.60 (6a5d10861ce8…, userDataDir: /tmp/.com.google.Chrome.raN1vj}, goog:chromeOptions: {debuggerAddress: localhost:38403}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 0611303360d61233dd753bbbdcf09b0a
*** Element info: {Using=xpath, value=id(“mat-checkbox-65”)/label[@class=“mat-checkbox-layout”]/span[@class=“mat-checkbox-inner-container”]}
2022-05-13 04:32:25.367 WARN c.k.k.c.webui.common.WebUiCommonHelper - [SELF-HEALING] invalid session id
Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’
System info: host: ‘4c91e9bbfce7’, ip: ‘172.17.0.2’, os.name: ‘Linux’, os.arch: ‘amd64’, os.version: ‘5.13.0-41-generic’, java.version: ‘1.8.0_292’
Driver info: com.kms.katalon.selenium.driver.CChromeDriver
Capabilities {acceptInsecureCerts: false, browserName: chrome, browserVersion: 100.0.4896.88, chrome: {chromedriverVersion: 100.0.4896.60 (6a5d10861ce8…, userDataDir: /tmp/.com.google.Chrome.raN1vj}, goog:chromeOptions: {debuggerAddress: localhost:38403}, javascriptEnabled: true, networkConnectionEnabled: false, pageLoadStrategy: normal, platform: LINUX, platformName: LINUX, proxy: Proxy(), setWindowRect: true, strictFileInteractability: false, timeouts: {implicit: 0, pageLoad: 300000, script: 30000}, unhandledPromptBehavior: dismiss and notify, webauthn:extension:credBlob: true, webauthn:extension:largeBlob: true, webauthn:virtualAuthenticators: true}
Session ID: 0611303360d61233dd753bbbdcf09b0a
*** Element info: {Using=css selector, value=span.mat-checkbox-inner-container}
2022-05-13 04:32:25.372 WARN c.k.k.c.w.h.s.WebUIScreenCaptor - Cannot take screenshot
2022-05-13 04:32:25.374 ERROR c.k.k.core.keyword.internal.KeywordMain - ? Unable to click on object ‘Object Repository/5. Certification Page/Page_IDHub Application/span_Catalog items need to be certified (6)_0986bb’ (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to click on object ‘Object Repository/5. Certification Page/Page_IDHub Application/span_Catalog items need to be certified (6)_0986bb’
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.ClickKeyword.click(ClickKeyword.groovy:74)
at com.kms.katalon.core.webui.keyword.builtin.ClickKeyword.execute(ClickKeyword.groovy:40)
at com.kms.katalon.core.keyword.internal.KeywordExecutor.executeKeywordForPlatform(KeywordExecutor.groovy:74)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords.click(WebUiBuiltInKeywords.groovy:620)
at com.kms.katalon.core.webui.keyword.WebUiBuiltInKeywords$click$3.call(Unknown Source)
at 03.Certficaition Trigger.run(03.Certficaition Trigger:186)
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:445)
at com.kms.katalon.core.main.TestCaseExecutor.doExecute(TestCaseExecutor.java:436)
at com.kms.katalon.core.main.TestCaseExecutor.processExecutionPhase(TestCaseExecutor.java:415)
at com.kms.katalon.core.main.TestCaseExecutor.accessMainPhase(TestCaseExecutor.java:407)
at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:284)
at com.kms.katalon.core.common.CommonExecutor.accessTestCaseMainPhase(CommonExecutor.java:65)
at com.kms.katalon.core.main.TestSuiteExecutor.accessTestSuiteMainPhase(TestSuiteExecutor.java:144)
at com.kms.katalon.core.main.TestSuiteExecutor.execute(TestSuiteExecutor.java:106)
at com.kms.katalon.core.main.TestCaseMain.startTestSuite(TestCaseMain.java:185)
at com.kms.katalon.core.main.TestCaseMain$startTestSuite$0.call(Unknown Source)
at TempTestSuite1652416150395.run(TempTestSuite1652416150395.groovy:36)
Caused by: org.openqa.selenium.NoSuchSessionException: invalid session id

1 Like

Why is there no solution to this issue? there’s like 5+ posts on this and WE are facing the same exact issue in 2025 almost.

Hi @ashraf.madina,

There might be various reasons for that error.

Browsers most probably is not properly opened and thus no screenshot can be taken (and obviously the click action on your “5. Certification Page” will not happen).

Is a profile selected for your run?
Perhaps your browser needs update?
Perhaps driver needs update?
For that last one, you can always try :