Hi All,

I was trying to Automate Drag n Drop for a web Application and I tried
the Drag and Drop code mentioned in the below link.
http://feedraider.com/item/24826/Z-Bar-Zone/Drag-and-Drop-with-Watir/

When i execute the below code its only Clicking on the Element ('ext-
gen617') 'onmousedown' but not executing the rest of the events.


window = ie2.document.parentwindow.frames("workspacePane").frames
("rightPane").frames("applicationWindowPane").frames
("applicationContentPane").frames("tabContentPBXName")
        window.focus
        dragdrop = window.document.getElementById('ext-gen614')

        window.execScript("document.blah=document.createEventObject
();document.blah.button=1")
        window.execScript("document.getElementById('ext-gen617').fireEvent
('onmousedown', document.blah)")
        sleep(2)
        window.execScript("document.blah=document.createEventObject
();document.blah.clientX='dragdrop.offsetLeft';document.blah.clientY='dragdrop.offsetTop'")
        sleep(2)
        window.execScript("document.getElementById('ext-gen617').fireEvent
('onmousemove', document.blah)")
        window.execScript("document.getElementById('ext-gen617').fireEvent
('onmouseup', document.blah)")


How can i make this work?

Thanks in advance,
Jonty


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Watir General" group.
To post to this group, send email to [email protected]
Before posting, please read the following guidelines: 
http://wiki.openqa.org/display/WTR/Support
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/watir-general
-~----------~----~----~----~------~----~------~--~---

Reply via email to