"Nate Kirby" wrote on 11/02/2005 05:23:05 PM: > Anyone out there got any experience using selenium to drive mouse > events that are more complex than clicking like dragging.
I personally don't have that experience, but I'm very eager to see if Selenium could do such a thing. Specifically, I'd like to see Selenium be able to test new "Web 2.0" tricks like: * dragable lists in script.aculo.us (http://wiki.script.aculo.us/scriptaculous/show/SortableListsDemo) * drawing in the new <canvas> tag in Firefox 1.5 (Link only works in Firefox 1.5 and Safari --> http://ponderer.org/download/canvas_demo/) The key thing to know is that Selenium at its core is just HTML and JavaScript... so if JavaScript can do it, Selenium can do it. Once you figure out how to script the dragging of elements in JavaScript, you can edit Selenium's user-extensions.js file to add a new "drag" command to add to your HTML table tests. Also, I know for sure you can trigger most any event in JavaScript, even mouse events... However, if you use JavaScript to simulate dragging, your visible mouse cursor stays under your control (unless you simulate that with an animated cursor.gif element). - Jason _______________________________________________ Selenium-users mailing list Selenium-users@lists.public.thoughtworks.org http://lists.public.thoughtworks.org/mailman/listinfo/selenium-users