*Summary
Unable to drag and drop Test Objects from the Object Repository into a Test Case when the Test Case is in Script mode. The drag-and-drop action produces no result.
*Steps to reproduce
Open a Test Case
Switch the Test Case to Script mode.
Open the Object Repository panel.
Select a Test Object (e.g. Object Repository/Login/Btn_login).
Drag the object from the Object Repository panel and drop it into the script editor.
*Expected Results
The Test Object reference should be automatically inserted into the script at the drop
*Actual Results
Nothing is inserted into the script. The drag-and-drop has no effect in Script mode.
*Screenshots / Videos
(please attach screenshots or videos if necessary to reproduce the issue)
Delete the file: com.kms.katalon.composer.explorer.prefs
Restart Katalon Studio
Test drag-and-drop again
Option 2: Manually Type findTestObject() (Quick Alternative)
If you don’t want to delete files, just copy-paste the object reference:
// Instead of dragging, type: WebUI.click(findTestObject('Object Repository/Login/Btn_login'))
// Or for API: def response = WS.sendRequest(findTestObject('Object Repository/LoginRequest'))
Option 3: Check “Link the Selected Part” Setting
Sometimes the Tests Explorer setting blocks drag-and-drop:
Open Tests Explorer
Look for “Link the selected part” checkbox
Make sure it’s checked (not unchecked)
Try dragging again
Why This Happens
This is a Eclipse platform regression in Katalon’s underlying IDE components. The drag-and-drop handler in Script Mode isn’t properly registered, so the insertion fails silently
Quick fix right now: Use Option 1 (delete the prefs file) — it’s the only workaround that actually restores drag-and-drop functionality permanently .