Forum Discussion

Kostja's avatar
Kostja
Contributor
10 years ago
Solved

Drag'n'Drop into invisible object

Hey guys,   im still a newbie to TestComplete and got a new problem. This time i want to drag'n'drop a widget into an object, which only appears when i start to drag otherwise its neither visible n...
  • Kostja's avatar
    10 years ago

    Hey guys,

     

    so I figured out, what the problem is (had to pay more effort in search). Its because of the <div> element --> http://support.smartbear.com/viewarticle/56466/#Remarks

     

    Is there still a way to perform the drag action from the modal window to the main window since the <div>-element is not supported?

     

    PS: But still i wonder why does this code work... -->

     

    function DragNDrop()
    {
      var panel;
      var panel2;
      panel = Aliases.browser.pageAltivarLogin.panelWidgetmenu;
      panel.panelMenuopenerUiStateWhiteout.Click();
      panel.panelWidgetmenuitemUiDraggable.HoverMouse();
      panel2 = panel.panelWidgetmenuitemUiDraggableHo;
      panel2.Drag(103, 27, -970, -390);
      panel.panelMenuopenerUiStateWhiteout.Click();
    }

     

    ...and the other one doesn't?

     

    Thanks for help in advance