# Browser won't Close automatically when calling another browser (Katalon\_Studio\_Windows\_64-6.3.4)

**URL:** <https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461>\
**Category:** Bug Report\
**Tags:** katalon-studio, bugs-report\
**Created:** [September 3, 2019, 2:04am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461 "2019-09-03T02:04:01Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![adriantey09](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@adriantey09](https://forum.katalon.com/u/adriantey09)\
**Post date:** [September 3, 2019, 2:04am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/1 "2019-09-03T02:04:01Z")

</div>

Hi, this is a major issue for us that breaks a lot of my test cases. Suppose Katalon will close browser automatically when calling into another test case.  
Is there any way I can change this behavior? If not, how quickly can this issue be corrected?

---

<div class="post-metadata">

**Author:** ![adriantey09](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@adriantey09](https://forum.katalon.com/u/adriantey09)\
**Post date:** [September 3, 2019, 2:04am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/2 "2019-09-03T02:04:47Z")

</div>

![katalonbug](https://europe1.discourse-cdn.com/katalon/original/2X/8/8f8c6a4212e5692a242317e333b3e47c3aa36684.png)

---

<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:** [September 3, 2019, 5:08am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/3 "2019-09-03T05:08:17Z")

</div>

Hi @adriantey09

There is a utility in not automatically closing the driver such as you want to investigate why your test fails at that screen. You would want to do that manually instead of having Katalon Studio automatically closes it for you. Try calling closeBrowser before callTestCase.

I would take this suggestion back to the team, but I can’t promise anything yet.

Cheers !

---

<div class="post-metadata">

**Author:** ![adriantey09](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@adriantey09](https://forum.katalon.com/u/adriantey09)\
**Post date:** [September 3, 2019, 6:10am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/4 "2019-09-03T06:10:44Z")

</div>

Urm… I think there is as i have no failures in previous katalon version from 2.2 - 3.3 and i’ve maintained my test cases run smoothly for 3 months. Or the update has changed the keywords?

---

<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:** [September 3, 2019, 6:16am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/5 "2019-09-03T06:16:42Z")

</div>

Hi @adriantey09

You didn’t mention your script was working fine, so I thought you were making suggestions. Could you verify that this behavior is exclusive in the newest version ? In older versions callTestCase automatically closed browser for you ?

Cheers !

---

<div class="post-metadata">

**Author:** ![adriantey09](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@adriantey09](https://forum.katalon.com/u/adriantey09)\
**Post date:** [September 3, 2019, 6:33am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/6 "2019-09-03T06:33:58Z")

</div>

> [@ThanhTo](#):
>
> Could you verify that this behavior is exclusive in the newest version ? In older versions callTestCase automatically closed browser for you ?

Yep. Let me explained an example in my situation in previous version, so i have TESTCASE\_1 and TEST\_CASE2 containing open browser as first action and there was no close browser as last action.  
TEST\_CASE2 CALLED FROM TEST\_CASE1, obviously the last step of TESTCASE\_1 will be calling to TEST\_CASE2. I’m suspecting since there is two open browser in both test cases, katalon found that TEST\_CASE1 does not containing closed browser as last action so it automatically triggers the web to close browser before proceeding to TEST\_CASE2.

---

<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:** [September 3, 2019, 6:42am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/7 "2019-09-03T06:42:00Z")

</div>

Hi @adriantey09

Just curious, can you post the full console log of this error ? What was your reasoning that this problem was caused by drivers not automatically closed ?

---

<div class="post-metadata">

**Author:** ![adriantey09](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@adriantey09](https://forum.katalon.com/u/adriantey09)\
**Post date:** [September 3, 2019, 7:00am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/8 "2019-09-03T07:00:12Z")

</div>

[close.txt](https://europe1.discourse-cdn.com/katalon/original/2X/0/0985c48055f344cc62330de1e3e4c797a57bb1e4.txt) (80.5 KB)

sure no probs!

Cheers!

---

<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:** [September 3, 2019, 7:18am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/9 "2019-09-03T07:18:24Z")

</div>

Hi @adriantey09

I found the problem. We will fix this as soon as possible, for now please try the previous version of Katalon. I will keep you posted when this is fixed. Thanks for reporting !

Cheers !

---

<div class="post-metadata">

**Author:** ![adriantey09](https://avatars.discourse-cdn.com/v4/letter/a/bbce88/32.png) [@adriantey09](https://forum.katalon.com/u/adriantey09)\
**Post date:** [September 3, 2019, 8:11am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/10 "2019-09-03T08:11:26Z")

</div>

Alright thanks a lot!

**Cheers !**

---

<div class="post-metadata">

**Author:** ![devalex88](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/devalex88/32/336_2.png) [@devalex88](https://forum.katalon.com/u/devalex88)\
**Post date:** [October 9, 2019, 7:48am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/11 "2019-10-09T07:48:35Z")

</div>

This has been fixed in version 7.0.

---

<div class="post-metadata">

**Author:** ![system](https://europe1.discourse-cdn.com/katalon/original/3X/d/5/d55596ab02785a255798e87ede769734747b30c4.svg) [@system](https://forum.katalon.com/u/system)\
**Post date:** [October 8, 2020, 7:48am UTC](https://forum.katalon.com/t/browser-wont-close-automatically-when-calling-another-browser-katalon-studio-windows-64-6-3-4/32461/12 "2020-10-08T07:48:39Z")

</div>

Closed on October 8, 2020, 7:48am UTC

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
