# Switching between different applications

**URL:** <https://forum.katalon.com/t/switching-between-different-applications/55619>\
**Category:** Desktop Testing\
**Tags:** desktop, windows, katalon-studio\
**Created:** [June 10, 2021, 9:09am UTC](https://forum.katalon.com/t/switching-between-different-applications/55619 "2021-06-10T09:09:45Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![peter.hevesi](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/peter.hevesi/32/17756_2.png) [@peter.hevesi](https://forum.katalon.com/u/peter.hevesi)\
**Post date:** [June 10, 2021, 9:09am UTC](https://forum.katalon.com/t/switching-between-different-applications/55619/1 "2021-06-10T09:09:45Z")

</div>

Hello, I wonder, is it possible to switch between many different Windows Applications during TestCase Execution? Or it is just possible to switch between different windows of the application I already started with WindowsDriver? Because I have one desktop app, that only opens through Browser Plugin, so I can’t instruct Katalon Studio to open it using exe file. It just need to find it once it’s already open. I am having so much trouble doing this, so any help would be appreciated.  
Also, I just tried to switch to already opened but minimized PowerShell Window and It waited few minutes and then it said it was successful, but PowerShell still stayed closed. So is it possible to only create a test for 1 concrete application chosen at the beginning, and then do some actions on it, or is it possible to do switch apps freely?  
Thanks so much!!!

---

<div class="post-metadata">

**Author:** ![rasis.o13](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/rasis.o13/32/26921_2.png) [@rasis.o13](https://forum.katalon.com/u/rasis.o13)\
**Post date:** [March 6, 2024, 6:59am UTC](https://forum.katalon.com/t/switching-between-different-applications/55619/2 "2024-03-06T06:59:56Z")

</div>

I am also looking for the answer, buddy.

---

<div class="post-metadata">

**Author:** ![depapp](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/depapp/32/29178_2.png) [@depapp](https://forum.katalon.com/u/depapp)\
**Post date:** [October 9, 2026, 10:13am UTC](https://forum.katalon.com/t/switching-between-different-applications/55619/3 "2026-10-09T10:13:34Z")

</div>

hi @peter.hevesi @rasis.o13

yes, you can attach to a window that is already open, you just do not go through the exe. winappdriver has a desktop session: start it on the root and then every top level window on the machine is reachable.

```groovy
Windows.startApplication('Root')
Windows.switchToWindowTitle('Title of the app the plugin opened')
Windows.click(findWindowsObject('App/button_ok'))
Windows.switchToWindowTitle('Another App')

```

startApplication(‘Root’) does not launch anything, it gives you a session that spans the whole desktop. switchToWindowTitle then moves the driver to the matching window, and you can jump back and forth between any number of apps in the same test case. object spy also works on the root session, pick “Root” as the application and spy whatever is on screen.

one thing to watch: on the root session xpath locators are evaluated against the entire desktop, so keep them scoped, start them from the window (//Window[@Name=‘…’]//Button[@Name=‘OK’]) or the spy will be slow.

---

<div class="post-metadata">

**Author:** ![arvind.choudhary](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arvind.choudhary/32/33165_2.png) [@arvind.choudhary](https://forum.katalon.com/u/arvind.choudhary)\
**Post date:** [October 25, 2026, 4:13pm UTC](https://forum.katalon.com/t/switching-between-different-applications/55619/4 "2026-10-25T16:13:21Z")

</div>

I am adding few more points to the Depa’s post ( which is already covering everything)

1. 
  1. Simply switching to a driver does not automatically restore or bring a window into focus. This is likely why the minimized PowerShell window appeared to switch successfully but remained minimized. In such cases, restore the window first (for example, by clicking its taskbar icon through the Root session) before performing any interactions. I have noticed in my prior projects

---

<div class="post-metadata">

**Author:** ![arvind.choudhary](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arvind.choudhary/32/33165_2.png) [@arvind.choudhary](https://forum.katalon.com/u/arvind.choudhary)\
**Post date:** [October 25, 2026, 4:13pm UTC](https://forum.katalon.com/t/switching-between-different-applications/55619/5 "2026-10-25T16:13:59Z")

</div>

1. When an application is launched through a browser plugin, its window may not be available immediately. Instead of relying on a single switch attempt, consider implementing a short retry mechanism with a 1-second interval for up to 15 seconds to allow the window sufficient time to appear.

---

<div class="post-metadata">

**Author:** ![arvind.choudhary](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arvind.choudhary/32/33165_2.png) [@arvind.choudhary](https://forum.katalon.com/u/arvind.choudhary)\
**Post date:** [October 25, 2026, 4:14pm UTC](https://forum.katalon.com/t/switching-between-different-applications/55619/6 "2026-10-25T16:14:58Z")

</div>

1. If the application window title changes dynamically or contains variable text, avoid using an exact title match. A more reliable approach is to locate it using a partial match like contains(@Name,‘…’)

---

<div class="post-metadata">

**Author:** ![arvind.choudhary](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arvind.choudhary/32/33165_2.png) [@arvind.choudhary](https://forum.katalon.com/u/arvind.choudhary)\
**Post date:** [October 25, 2026, 4:15pm UTC](https://forum.katalon.com/t/switching-between-different-applications/55619/7 "2026-10-25T16:15:42Z")

</div>

1. If the target application is running with elevated (Administrator) privileges, ensure that WinAppDriver is also started as Administrator. Otherwise, those elevated application windows may not be visible within the Root session, preventing them from being located or interacted with

---

<div class="post-metadata">

**Author:** ![arvind.choudhary](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/arvind.choudhary/32/33165_2.png) [@arvind.choudhary](https://forum.katalon.com/u/arvind.choudhary)\
**Post date:** [October 25, 2026, 4:17pm UTC](https://forum.katalon.com/t/switching-between-different-applications/55619/8 "2026-10-25T16:17:51Z")

</div>

Some of the above posted **small adjustments** often help make desktop window switching and application handling much more reliable.
