18 January 2026:
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
This forum is now archived and is in read-only mode. Please continue discussions on our improved new Sahi Pro Community forum.
Sahi Pro is an enterprise grade test automation platform which can automate web, mobile, API, windows and java based applications and SAP.
AJAX Drag and Drop
Hello All,
My problem is I am working in a website that has a dashboard. The user can configure this dashboard by dragging and dropping different components (from the component library) onto the dashboard columns.
What I'd like to achieve is to have Sahi automate the dashboard creation process.
Here is a screenshot of the dashboard configuration page:
http: //i37. tinypic.com/9zoe83.jpg
(remove spaces)
I'd like to drag and drop the "Activity Listing" rectangle.
The available accessors for the "Activity Listing" rectangle are:
_div("Activity Listing")
_div("ctl00_ctl00_ContentPlaceHolder1_UserGradient_ctl00_ContentPlaceHolder1_groupDashboard_Activity Listing_T")
_div("rdTitleBar rdDraggable")
_div(79)
The available accessors for the Drag To region are:
_div("ctl00_ctl00_ContentPlaceHolder1_UserGradient_ctl00_ContentPlaceHolder1_groupDashboard_leftzonegroupDashboard")
_div("RadDockZone RadDockZone_ rdVertical RadDockZone_DefaultEdit")
_div(125)
Trying to use some combination of the above in the following way:
_dragDrop(_div("Activity Listing"), _div("ctl00_ctl00_ContentPlaceHolder1_UserGradient_ctl00_ContentPlaceHolder1_groupDashboard_leftzonegroupDashboard"));
I'm not having any luck though. Hope someone has some ideas.
Thank you,
Wayne
My problem is I am working in a website that has a dashboard. The user can configure this dashboard by dragging and dropping different components (from the component library) onto the dashboard columns.
What I'd like to achieve is to have Sahi automate the dashboard creation process.
Here is a screenshot of the dashboard configuration page:
http: //i37. tinypic.com/9zoe83.jpg
(remove spaces)
I'd like to drag and drop the "Activity Listing" rectangle.
The available accessors for the "Activity Listing" rectangle are:
_div("Activity Listing")
_div("ctl00_ctl00_ContentPlaceHolder1_UserGradient_ctl00_ContentPlaceHolder1_groupDashboard_Activity Listing_T")
_div("rdTitleBar rdDraggable")
_div(79)
The available accessors for the Drag To region are:
_div("ctl00_ctl00_ContentPlaceHolder1_UserGradient_ctl00_ContentPlaceHolder1_groupDashboard_leftzonegroupDashboard")
_div("RadDockZone RadDockZone_ rdVertical RadDockZone_DefaultEdit")
_div(125)
Trying to use some combination of the above in the following way:
_dragDrop(_div("Activity Listing"), _div("ctl00_ctl00_ContentPlaceHolder1_UserGradient_ctl00_ContentPlaceHolder1_groupDashboard_leftzonegroupDashboard"));
I'm not having any luck though. Hope someone has some ideas.
Thank you,
Wayne
This discussion has been closed.
Comments
My initial guess is that the drop div is not correct. It may be a div outside this "RadDockZone" or inside it. Could you check if there is a div with "droppable" some where in its css classname or some other id?
Regards,
Narayan
I have looked throughout the page and did not find anything else suitable for the droppable area. For some reason I think it has to do more with the draggable items. I have tried to straight up _dragDropXY the draggable objects and nothing seems to happen:
_dragDropXY(_div("Videos"), 0, -50, TRUE);
I think this should move it 50 pixels south from where it is, which should be in my droppable area.
Any thoughts? I've been racking my brain on this for the last two days.
Thank you,
Wayne
Is it possible to share the website URL with us so that we can suggest you a solution? You could email us at support@sahi.co.in with relevant details.
Or else we may need to do a desktop sharing session to figure out whats happening.
Regards,
Narayan
EDIT: _dragDropXY(_div("Videos"), 0, -50, TRUE); -50 takes you north because the coordinate system starts at 0,0 as the left top of the page and proceeds positive downwards. The x coordinate is fine. The y coordinate is opposite of normal (positive increase downward). Also, the last parameter should be true instead of TRUE (lowercase instead of uppercase)
Thank you again for your reply. I have emailed support with steps to access the particular site.
Thank you again!
_dragDrop(_div("Activity Listing"), _div("/RadDockZone_DefaultEdit/"), 30, 10)