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)
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)
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)
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)
List all open window titles before switching to verify what’s actually available:
List<String> windowTitles = Windows.getOpenedWindowTitles()
KeywordUtil.logInfo('Available window titles: ' + windowTitles)
If the title is not reliable, switch by index:
Windows.switchToWindowIndex(1) // Switch to second window opened
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.