hi,
I have a control with drag and drop functionality ,after drag and drop the item i have to check the sorting order of the list . i have attached screen shot. i need to drag the icons marked in the red to top and bottom.
How to handle the drag and drop control
How to handle the drag and drop control
You do not have the required permissions to view the files attached to this post.
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to handle the drag and drop control
Hi manideep,
There are multiple possibilities in order to do that, but it depends on how the elements are represented in your Application.
You can, for example use a validate exists action for each element and use a special RanoreXPath.
For example:
/form[@title='Ranorex']//element[@name='Message Read' and @childindex=8]
If the element is not in the correct position the test will fail.
Please let me know if I don't understand your question correctly.
Regards,
Bernhard
There are multiple possibilities in order to do that, but it depends on how the elements are represented in your Application.
You can, for example use a validate exists action for each element and use a special RanoreXPath.
For example:
/form[@title='Ranorex']//element[@name='Message Read' and @childindex=8]
If the element is not in the correct position the test will fail.
Please let me know if I don't understand your question correctly.
Regards,
Bernhard
Re: How to handle the drag and drop control
.//div[#'wms_dragHandle49']/i[@title='Drag To Move'] is the ranorex path for first image and //div[#'wms_dragHandle50']/i[@title='Drag To Move'] is the path for second image
we should click and drag the first image and leave the mouse button in the place of second image...
pls post asap.....
we should click and drag the first image and leave the mouse button in the place of second image...
pls post asap.....
- Support Team
- Site Admin
- Posts: 12145
- Joined: Fri Jul 07, 2006 4:30 pm
- Location: Houston, Texas, USA
- Contact:
Re: How to handle the drag and drop control
Hello manideep,
I suggest using the Mouse Down and Mouse Up action in order to move an item to another place.
This should do the trick.
Regards,
Bernhard
I suggest using the Mouse Down and Mouse Up action in order to move an item to another place.
This should do the trick.
Regards,
Bernhard
You do not have the required permissions to view the files attached to this post.