Drag And Drop test execution passes but mouse cursor has to be located on destination object

Hello everyone,

I’m trying to drag a file and drop into folder in a webpage. (Like MacOS Finder system).

I can capture objects but when executing testcase, drag is done but it is dropping where my physical mouse located so I have to move my mouse cursor to the folder that I’d like to drop always.

Is there a solution for disabling real mouse cursor? I’ve read that if user won’t move mouse at all it should be fine but still it does not drop.

Here is the HTML.

Katalon Keyword code:

public class draganddrop {	
		@Keyword
		def DragnDrop(TestObject source, TestObject destination)
		{
			 WebDriver driver = DriverFactory.getWebDriver()
			 Actions build = new Actions(driver)
			 def _source = WebUiCommonHelper.findWebElement(source, 30)
			 def _destination = WebUiCommonHelper.findWebElement(destination, 30)
			 build.dragAndDrop(_source, _destination).release().perform()
			 
		}
	}

1st Test Object xpath: (//div[@id='dndTree_outlineDiv2'])/ul/li[1]
2nd Test Object xpath: (//div[@id='dndTree_outlineDiv2'])/ul/li[4]

Drop is successful or not, test case always passes. No errors.

I appreciate all help in advance.