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

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

	
	Windows.switchToWindowTitle(windowTitle)

1. Try Partial Title or Regex Matching

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

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:

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:

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:

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.
1 Like

@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.