18 January 2026:


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.

dragDrop and popup proper syntax

rj412rj412 Members
edited November -1 in Sahi - Open Source
Need help with dragDrop and popup syntax...

I can successfully perform a _dragDrop - but ONLY if its on the SAME popup window.
But when I'm trying to drag from one popup window and drop to another popup window,
it seems to get lost as it is unable to recognize the 'dropped' popup window.
SahiNotMyWindowException: Window with name [PopupWindow2] not found

//when _dragDrop works
_dragDrop(_div("cell_A") ,_div("cell_B"));

//Now with popup windows - neither of the following works, regardless if the popup Window is using regexp or not
_dragDrop(_popup("PopupWindowTitle1")._link("Item1") ,_popup("PopupWindowTitle")._div("cell_A"));

var $pWindow1 = "PopupWindowTitle1" ;
var $pWindow2 = "PopupWindowTitle2" ;
_dragDrop(_popup($pWindow1)._link("Item1") ,_popup($pWindow2)._div("cell_A"));

Please help.
Sign In or Register to comment.