# Drag anf drop in web testing

**URL:** <https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042>\
**Category:** Web Testing\
**Tags:** katalon-studio\
**Created:** [January 24, 2020, 10:46am UTC](https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042 "2020-01-24T10:46:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![tina.ghaydar](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tina.ghaydar](https://forum.katalon.com/u/tina.ghaydar)\
**Post date:** [January 24, 2020, 10:46am UTC](https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042/1 "2020-01-24T10:46:51Z")

</div>

how to use drag and drop object in web testing

---

<div class="post-metadata">

**Author:** ![r.klein1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/r.klein1/32/23870_2.png) [@r.klein1](https://forum.katalon.com/u/r.klein1)\
**Post date:** [January 24, 2020, 11:02am UTC](https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042/2 "2020-01-24T11:02:16Z")

</div>

> **[\[WebUI\] Drag And Drop To Object](https://docs.katalon.com/katalon-studio/docs/webui-drag-and-drop-to-object.html#example)**
>
> Description Drag an object and drop it onto another object. Parameters Param Param Type Mandatory Description sourceObject TestObject Required The source object. destinationObject TestObject Required The destination object. flowControl...

---

<div class="post-metadata">

**Author:** ![tina.ghaydar](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tina.ghaydar](https://forum.katalon.com/u/tina.ghaydar)\
**Post date:** [January 27, 2020, 1:43pm UTC](https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042/3 "2020-01-27T13:43:46Z")

</div>

yeah , thank you for your support but when i select Drag and drop to object after that i select object of which i want to start drag and after i do not understand that what i select in input option of drag and drop to object option so can you please tell me that answer so i can easily understand and work on it . Here, the screen short so u can easily understand my query

> **[Screenshot](https://prnt.sc/qtb055)**
>
> Captured with Lightshot

---

<div class="post-metadata">

**Author:** ![r.klein1](https://dub1.discourse-cdn.com/katalon/user_avatar/forum.katalon.com/r.klein1/32/23870_2.png) [@r.klein1](https://forum.katalon.com/u/r.klein1)\
**Post date:** [January 27, 2020, 2:05pm UTC](https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042/4 "2020-01-27T14:05:43Z")

</div>

Go to the ‘script’ of the testcase, find the line where it states something like “WebUI.dragAndDropToObject”. The first parameter should be the testobject which should be dragged and the second the one where to drop.

---

<div class="post-metadata">

**Author:** ![tina.ghaydar](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tina.ghaydar](https://forum.katalon.com/u/tina.ghaydar)\
**Post date:** [February 3, 2020, 6:12am UTC](https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042/5 "2020-02-03T06:12:22Z")

</div>

i tried with this but the error occur

Unable to drag and drop to object (Root cause: com.kms.katalon.core.exception.StepFailedException: Unable to drag and drop to object  
at com.kms.katalon.core.webui.keyword.internal.WebUIKeywordMain.stepFailed(WebUIKeywordMain.groovy:64)

Here,the screen short of what i change as per your suggestion

> **[Screenshot](https://prnt.sc/qwoeck)**
>
> Captured with Lightshot

so please can you tell me that what can i do in this situation ??

---

<div class="post-metadata">

**Author:** ![BruceLewis](https://avatars.discourse-cdn.com/v4/letter/b/f08c70/32.png) [@BruceLewis](https://forum.katalon.com/u/BruceLewis)\
**Post date:** [February 7, 2020, 5:33pm UTC](https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042/6 "2020-02-07T17:33:31Z")

</div>

I too am having a problem with making Drag and Drop work. Here is a snippet of my script

WebUI. _delay_ (1)

WebUI. _click_ ( _findTestObject_ (‘Page\_QLE Detail/input\_Browse’))

WebUI. _delay_ (1)

WebUI. _dragAndDropToObject_ ( _findTestObject_ (‘Page\_QLE Detail/image-Certificate’), _findTestObject_ (‘Drag and Drop/Page\_QLE Detail/div\_Drop Zone’))

WebUI. _delay_ (3)

WebUI. _takeScreenshot_ ()

The problem I am having is identifying the popup window itself and the objects in it i.e. the Certificate and Flag files. Can anyone give me some tips? Thanks!

 ![image](https://europe1.discourse-cdn.com/katalon/original/2X/5/5550b67fbd652fbfef1baad5e1f0aca2d5588708.png)

Thanks

[b.r.lewis@outlook.com](mailto:b.r.lewis@outlook.com)

---

<div class="post-metadata">

**Author:** ![tina.ghaydar](https://avatars.discourse-cdn.com/v4/letter/t/e95f7d/32.png) [@tina.ghaydar](https://forum.katalon.com/u/tina.ghaydar)\
**Post date:** [March 16, 2020, 10:36am UTC](https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042/7 "2020-03-16T10:36:21Z")

</div>

please anyone give the answer and tell me that how to use drag and drop.i tried from this link

> **[Handling drag and drop testing for web applications with Katalon Studio](https://docs.katalon.com/katalon-studio/docs/drag_drop_web_applications_katalon_studio.html#create-automation-tests-for-javascript-drag-and-drop)**
>
> In this tutorial, we will show you step-by-step how Katalon Studio is used to test the drag and drop feature in a web application.

but it is not working. please anyone give easy tutorial for understand .i want to drag and drop of price range.like the price range of filp kart that type of price range i want to drag and drop.

---

<div class="post-metadata">

**Author:** ![gauthamkarthik534](https://avatars.discourse-cdn.com/v4/letter/g/a587f6/32.png) [@gauthamkarthik534](https://forum.katalon.com/u/gauthamkarthik534)\
**Post date:** [September 12, 2020, 5:07pm UTC](https://forum.katalon.com/t/drag-anf-drop-in-web-testing/39042/8 "2020-09-12T17:07:35Z")

</div>

Tutorial on drag and drop web testing
