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.
Drag n Drop with dojo dijit UI widgets
Sahi (Build: 2010-08-20)
IE 8 and FF 3.6.4
1) I am trying to do Drag-n-Drop automation with sahi using the dojo dijit ui widgets and I am not able to make it work. Could you please try downloading the dojo SDK package (you need their sdk package specifically to get the samples), place it in tomcat and point to :
localhost:8080/js/dijit/themes/themeTester.html
On this page, click on the DnD tab and try automating drag-n-drop from Source1 to Source 2.
I tried the following with the accesors and alt accessors that sahi identified and all I get is "undefined"
> _dragDrop(_div("Item X"), _div("Item 1 Item 2 Item 3"), 2, 0);
or
> _dragDrop(_div("dojoUnique1"), _div("dojoUnique5"), 0, 0);
I also tried adding a _mouseOver(_div("Item X")); before the dragDrop and it made no difference
2) I tried automating moving sliders using the _dragDropXY api and although it manages to move the slider, it always moves left. I tried positive and negative numbers for the x coordinate and it always moves left.
I tried the following code on the 'Sliders' tab on the same page:
_click(_div(471));
_dragDropXY(_div(471), 5, 0, true)
You may need to change the div value. Not sure why it was different between IE and FF for the first slider on left.
IE 8 and FF 3.6.4
1) I am trying to do Drag-n-Drop automation with sahi using the dojo dijit ui widgets and I am not able to make it work. Could you please try downloading the dojo SDK package (you need their sdk package specifically to get the samples), place it in tomcat and point to :
localhost:8080/js/dijit/themes/themeTester.html
On this page, click on the DnD tab and try automating drag-n-drop from Source1 to Source 2.
I tried the following with the accesors and alt accessors that sahi identified and all I get is "undefined"
> _dragDrop(_div("Item X"), _div("Item 1 Item 2 Item 3"), 2, 0);
or
> _dragDrop(_div("dojoUnique1"), _div("dojoUnique5"), 0, 0);
I also tried adding a _mouseOver(_div("Item X")); before the dragDrop and it made no difference
2) I tried automating moving sliders using the _dragDropXY api and although it manages to move the slider, it always moves left. I tried positive and negative numbers for the x coordinate and it always moves left.
I tried the following code on the 'Sliders' tab on the same page:
_click(_div(471));
_dragDropXY(_div(471), 5, 0, true)
You may need to change the div value. Not sure why it was different between IE and FF for the first slider on left.
Comments
We are looking into this.
Regards,
Narayan
Jerry
my problem is very like http://sahi.co.in/forums/viewtopic.php?id=1880 which another guy posted long before.