For dynamic process change post-launch: Launch app manually, then attach via App Top Level Window Handle in Spy/Record configs—no menu needed in 11.0.1 FlaUI.
Exact Steps
Run app (note new process/PID via Task Manager).
Toolbar > Spy Windows Objects.
Configurations > App Top Level Window Handle: "ProcessId:<PID>" or window title (e.g., "ProcessId:12345", get PID from Inspect.exe).
Start → Tree refreshes with current process elements.
FlaUI handles process switches; Refresh screen if tree empty.
just realize that in Katalon Studio 11.x there is no longer a Spy menu under Window
the functionality is now available through Spy Windows Objects or Record Windows from the toolbar
If you want to capture elements from an already running Windows application, you can attach Katalon to the existing process instead of launching the application from the spy tool.
Steps
Launch the application manually.
In Katalon Studio, click Spy Windows Objects (or Record Windows) from the toolbar.
Open Configurations in the spy window.
Set App Top Level Window Handle so Katalon attaches to the running process.
How to get the value
Use Inspect.exe (from Windows SDK / WinAppDriver tools):
Open Inspect.exe
Find the ProcessId (PID) of the running application
Provide it in this format:
<processName>:<PID>
Example:
msedge:17948
After setting that value, click Start and the spy tree should load the elements of the running application.
Also note that in Katalon Studio 11.x, the desktop engine (FlaUI) can attach to running processes directly, so usually no Desired Capabilities configuration is required
2 I can not click ‘start’ while I leave the Application File empty, but the exe path is not same as the app’s process, What should I input here? Is there a way I can SPY existing app elements without inputting Application File?
yes, your configuration looks correct
the key part is App Top Level Window Handle, if you set it like ProcessId:<PID> and the PID matches the running process, Katalon should be able to attach to it
about Application File: unfortunately it cannot be left empty because the Start button is disabled when it’s blank. But when you are attaching using ProcessId, Katalon actually does not use this value to launch the app
so you can just input the main exe or the wrapper exe (for example C:\AppPath\appName.exe). It’s mainly required by the UI
even if the real process name changes after launch, attaching by PID should still work