# NoSuchSessionException: Session ID is null

**URL:** <https://forum.katalon.com/t/nosuchsessionexception-session-id-is-null/52416>\
**Category:** Mobile Testing\
**Tags:** mobile-testing, katalon-studio\
**Created:** [February 24, 2021, 1:21am UTC](https://forum.katalon.com/t/nosuchsessionexception-session-id-is-null/52416 "2021-02-24T01:21:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikhil.n](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nikhil.n/32/16104_2.png) [@nikhil.n](https://forum.katalon.com/u/nikhil.n)\
**Post date:** [February 24, 2021, 1:21am UTC](https://forum.katalon.com/t/nosuchsessionexception-session-id-is-null/52416/1 "2021-02-24T01:21:09Z")

</div>

Hi Team,

I am facing this issue when ever i run test suite . Only first tescase is passed and resta ll get failed “NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?”. Please help me over this

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/e/2/e2a62397845753caf84cba11a41831b82b3954de.png)

Thanks,  
Nikhil

---

<div class="post-metadata">

**Author:** ![ThanhTo](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/thanhto/32/697_2.png) [@ThanhTo](https://forum.katalon.com/u/ThanhTo)\
**Post date:** [February 25, 2021, 4:27am UTC](https://forum.katalon.com/t/nosuchsessionexception-session-id-is-null/52416/2 "2021-02-25T04:27:15Z")

</div>

@nikhil.n

At the end of the first test case, did you close the browser ? At the beginning of the second test did you open the browser ? The error indicates that you’re trying to perform actions on a browser when its driver is already closed.

---

<div class="post-metadata">

**Author:** ![nikhil.n](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nikhil.n/32/16104_2.png) [@nikhil.n](https://forum.katalon.com/u/nikhil.n)\
**Post date:** [March 23, 2021, 11:53am UTC](https://forum.katalon.com/t/nosuchsessionexception-session-id-is-null/52416/3 "2021-03-23T11:53:20Z")

</div>

Hi,  
I have written opening and closing browser methods beforetestcase and afteetestcase . And here I am trying on individual testcase

---

<div class="post-metadata">

**Author:** ![nikhil.n](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/nikhil.n/32/16104_2.png) [@nikhil.n](https://forum.katalon.com/u/nikhil.n)\
**Post date:** [March 23, 2021, 11:54am UTC](https://forum.katalon.com/t/nosuchsessionexception-session-id-is-null/52416/4 "2021-03-23T11:54:52Z")

</div>

Most probably I am able to execute same script on 7.2.1 version of katalon. But after upgrading katalon to 7.7.2 the issue is coming

---

<div class="post-metadata">

**Author:** ![sathya.kunda](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/sathya.kunda/32/16103_2.png) [@sathya.kunda](https://forum.katalon.com/u/sathya.kunda)\
**Post date:** [August 11, 2021, 8:06am UTC](https://forum.katalon.com/t/nosuchsessionexception-session-id-is-null/52416/5 "2021-08-11T08:06:15Z")

</div>

I am using the Katalon version 8.0.5 and when trying to execute any test case on Android device version 10.0. Getting this error as mentioned below.

Please help me fixing these issues.

org.openqa.selenium.NoSuchSessionException: Session ID is null. Using WebDriver after calling quit()?

Build info: version: ‘3.141.59’, revision: ‘e82be7d358’, time: ‘2018-11-14T08:25:53’

System info: host: ‘GC02XG7NJJG5HE’, ip: ‘fe80:0:0:0:8bb:d79d:f007:d0bc%en0’, os.name: ‘Mac OS X’, os.arch: ‘x86\_64’, os.version: ‘10.15.7’, java.version: ‘1.8.0\_275’

Driver info: driver.version: SwipeableAndroidDriver

at org.openqa.selenium.remote.HttpCommandExecutor.execute(HttpCommandExecutor.java:125)

at io.appium.java\_client.remote.AppiumCommandExecutor.execute(AppiumCommandExecutor.java:239)

at org.openqa.selenium.remote.RemoteWebDriver.execute(RemoteWebDriver.java:552)

at io.appium.java\_client.DefaultGenericMobileDriver.execute(DefaultGenericMobileDriver.java:42)

at io.appium.java\_client.AppiumDriver.execute(AppiumDriver.java:1)

at io.appium.java\_client.android.AndroidDriver.execute(AndroidDriver.java:1)

at com.kms.katalon.core.appium.driver.SwipeableAndroidDriver.execute(SwipeableAndroidDriver.java:1)

at org.openqa.selenium.remote.RemoteWebDriver$RemoteTargetLocator.window(RemoteWebDriver.java:903)

at org.openqa.selenium.support.events.EventFiringWebDriver$EventFiringTargetLocator.window(EventFiringWebDriver.java:718)

at com.kms.katalon.core.webui.driver.DriverFactory.switchToAvailableWindow(DriverFactory.java:1041)

at com.kms.katalon.core.webui.driver.DriverFactory.verifyWebDriver(DriverFactory.java:924)

at com.kms.katalon.core.webui.driver.DriverFactory.getWebDriver(DriverFactory.java:907)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)

at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:1845)

at groovy.lang.MetaClassImpl.getProperty(MetaClassImpl.java:3773)

at org.codehaus.groovy.runtime.callsite.ClassMetaClassGetPropertySite.getProperty(ClassMetaClassGetPropertySite.java:50)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callGetProperty(AbstractCallSite.java:299)

at com.ge.me.android.Utils.closeCurrentWebDriver(Utils.groovy:232)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:822)

at groovy.lang.DelegatingMetaClass.invokeMethod(DelegatingMetaClass.java:144)

at com.ge.me.android.Utils.invokeMethod(Utils.groovy)

at com.kms.katalon.core.main.CustomKeywordDelegatingMetaClass.invokeStaticMethod(CustomKeywordDelegatingMetaClass.java:50)

at org.codehaus.groovy.runtime.callsite.StaticMetaClassSite.call(StaticMetaClassSite.java:52)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:120)

at TestListener.sampleAfterTestCase(TestListener.groovy:58)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:98)

at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:325)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1225)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1034)

at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:822)

at TestListener.invokeMethod(TestListener.groovy)

at com.kms.katalon.core.context.internal.TestHooker.invokeMethod(TestHooker.java:111)

at com.kms.katalon.core.context.internal.TestHooker.lambda$3(TestHooker.java:95)

at java.util.ArrayList.forEach(ArrayList.java:1259)

at com.kms.katalon.core.context.internal.TestHooker.invokeContextMethods(TestHooker.java:94)

at com.kms.katalon.core.context.internal.TestListenerCollector.lambda$3(TestListenerCollector.java:88)

at java.util.ArrayList.forEach(ArrayList.java:1259)

at com.kms.katalon.core.context.internal.TestListenerCollector.handleListenerEvent(TestListenerCollector.java:85)

at com.kms.katalon.core.context.internal.ExecutionEventManager.publicEvent(ExecutionEventManager.java:36)

at com.kms.katalon.core.main.TestCaseExecutor.execute(TestCaseExecutor.java:278)

at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:142)

at com.kms.katalon.core.main.TestCaseMain.runTestCase(TestCaseMain.java:133)

at com.kms.katalon.core.main.TestCaseMain$runTestCase$0.call(Unknown Source)

at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:47)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:116)

at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:152)

at TempTestCase1628668883510.run(TempTestCase1628668883510.groovy:25)

at groovy.lang.GroovyShell.runScriptOrMainOrTestOrRunnable(GroovyShell.java:263)

at groovy.lang.GroovyShell.run(GroovyShell.java:507)

at groovy.lang.GroovyShell.run(GroovyShell.java:496)

at groovy.ui.GroovyMain.processOnce(GroovyMain.java:597)

at groovy.ui.GroovyMain.run(GroovyMain.java:329)

at groovy.ui.GroovyMain.process(GroovyMain.java:315)

at groovy.ui.GroovyMain.processArgs(GroovyMain.java:134)

at groovy.ui.GroovyMain.main(GroovyMain.java:114)

at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)

at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)

at java.lang.reflect.Method.invoke(Method.java:498)

at org.codehaus.groovy.tools.GroovyStarter.rootLoader(GroovyStarter.java:116)

at org.codehaus.groovy.tools.GroovyStarter.main(GroovyStarter.java:138)
