# I am not able to find the window by Title as i m giving the correct title of the windows 

**URL:** <https://forum.katalon.com/t/i-am-not-able-to-find-the-window-by-title-as-i-m-giving-the-correct-title-of-the-windows/185397>\
**Category:** Miscellaneous\
**Created:** [November 8, 2025, 3:27am UTC](https://forum.katalon.com/t/i-am-not-able-to-find-the-window-by-title-as-i-m-giving-the-correct-title-of-the-windows/185397 "2025-11-08T03:27:07Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![imtiaz](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/imtiaz/32/30227_2.png) [@imtiaz](https://forum.katalon.com/u/imtiaz)\
**Post date:** [November 8, 2025, 3:27am UTC](https://forum.katalon.com/t/i-am-not-able-to-find-the-window-by-title-as-i-m-giving-the-correct-title-of-the-windows/185397/1 "2025-11-08T03:27:07Z")

</div>

String windowTitle = “CRM Manager Login View - Imtiyaz Ahmad PETRO028632T 101 - Automall - Jeddah (01) (2476)”  
KeywordUtil.logInfo("Switching to window with title: " + windowTitle)

```auto
	
	Windows.switchToWindowTitle(windowTitle)

```

 ![image](https://europe1.discourse-cdn.com/katalon/original/3X/9/9/99a8143554552beefc028127e6df1faaf196eea1.png)

---

<div class="post-metadata">

**Author:** ![dineshh](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/dineshh/32/24488_2.png) [@dineshh](https://forum.katalon.com/u/dineshh)\
**Post date:** [November 8, 2025, 7:21am UTC](https://forum.katalon.com/t/i-am-not-able-to-find-the-window-by-title-as-i-m-giving-the-correct-title-of-the-windows/185397/2 "2025-11-08T07:21:17Z")

</div>

## 1. Try Partial Title or Regex Matching

Katalon’s Windows (and WebUI) switch commands accept partial titles or regex patterns:

```auto
Windows.switchToWindowTitle('CRM Manager Login View') // Partial match
// Or, for advanced matching (Katalon 7.5.5+), specify a matching strategy:
Windows.switchToWindowTitle(windowTitle, com.kms.katalon.core.windows.constants.StringMatchingStrategy.CONTAINS)

```

## 2. Increase Timeout for Window Detection

Sometimes the automation executes too quickly. Set a longer timeout right before switching:

```auto
import com.kms.katalon.core.windows.keyword.helper.WindowsActionSettings
WindowsActionSettings.DF_WAIT_ACTION_TIMEOUT_IN_MILLIS = 180000 // Wait up to 180 seconds
Windows.switchToWindowTitle(windowTitle)

```

## 3. Inspect Available Window Titles Programmatically

List all open window titles before switching to verify what’s actually available:

```auto
List<String> windowTitles = Windows.getOpenedWindowTitles()
KeywordUtil.logInfo('Available window titles: ' + windowTitles)

```

## 4. Use Window Index as a Fallback

If the title is not reliable, switch by index:

```auto
Windows.switchToWindowIndex(1) // Switch to second window opened

```

* * *

## Recommendations

- **Trim** and **sanitize** your window title string for hidden characters.
- Use **partial match** or **regular expressions** if the title is dynamic.
- Print/log all available window titles before switching to identify discrepancies.
- Increase the **timeout** and add waits until the desired window appears.
- If the issue persists, verify the exact automation API (WebUI vs. Windows) and whether you may be switching between browser tabs or actual desktop windows.

---

<div class="post-metadata">

**Author:** ![kazurayam](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/kazurayam/32/333_2.png) [@kazurayam](https://forum.katalon.com/u/kazurayam)\
**Post date:** [November 8, 2025, 9:25am UTC](https://forum.katalon.com/t/i-am-not-able-to-find-the-window-by-title-as-i-m-giving-the-correct-title-of-the-windows/185397/3 "2025-11-08T09:25:01Z")

</div>

@imtiaz

To me, the screenshot you provided looks to be a window of Java Applet; not an ordinary HTML-based web page. If it is a Java Applet, Katalon Studio would not be able to speak to it at all.

Please make sure if the target is a HTML-based web page. Show us the HTML source code (the `<html><head><title>...</title></head>` part at least), please.
