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.
_under and _dragDrop
//I'm able to highlight the cells that I want using _under, but unable to use them with dragdrop, it there something wrong with my syntax below?
var $popupWindow = "Page1Window";
_popup($popupWindow)._highlight(_div(5, _under(_div("fill_space")))) ;
_popup($popupWindow)._highlight(_div(22, _under(_div("fill_space")))) ;
_popup($popupWindow)._dragDrop(_div(5, _under(_div("fill_space"))) ,_div(22, _under(_div("fill_space")))) ;
dragDrop in the window.
The other issue is dragging and dropping from 1 popup window to another one
(theres another topic opened for that).
Has anybody used _dragDrop successfully?
var $popupWindow = "Page1Window";
_popup($popupWindow)._highlight(_div(5, _under(_div("fill_space")))) ;
_popup($popupWindow)._highlight(_div(22, _under(_div("fill_space")))) ;
_popup($popupWindow)._dragDrop(_div(5, _under(_div("fill_space"))) ,_div(22, _under(_div("fill_space")))) ;
dragDrop in the window.
The other issue is dragging and dropping from 1 popup window to another one
(theres another topic opened for that).
Has anybody used _dragDrop successfully?
Comments
Drag and drop is not a native operation on the browser. It is implemented by different frameworks in different ways. _dragDrop tries to simulate mousedown, mousemove and mouseup events on the correct elements. Based on the js framework being used, there may be differences in behavior.
The latest release of Sahi also has a few bug fixes related to dragdrop. http://sahi.co.in/forums/viewtopic.php?id=1901
For moving between one window and another, the _dragDrop API may not work. We may need to synthesize the events specifically for this case.
Regards,
Narayan
1- It is supported by using 2 different 'locate-me' element that uses the _under ?
_popup($popupWindow)._dragDrop(_div(5, _under(_div("fill_space"))) ,_div(22, _under(_div("fill_space"))))
2- Let me know what info you need from me, so you can 'synthesize' the events to support _dragDrop from with different popup window.
Thanks.