Hi, you should have a look to qx.event.handler.EventHandler
Basically Qooxdoo will capture the Dom-Events (mouse/keyboard) on the "document"-level. If the "target" of an Event is a Widget and a Handler had been attached to the Dom-Event is packaged into a Qooxdoo Event-Object and it is routed to according Widget. I assume it would be possible to record all Events here and replay them for testing purpose. Anyway it might be hard to replay the records if you (or the Qooxdoo Widgets internally) are depending on the inner Dom-Event. As far as I saw the resulting DOM-elements of any Widget are NOT marked with DOM-IDs. Might be a way to "overwrite" the document.createElement method to inject an ID here. Anyway I would be highly interested in your experiments here too, as a testing working bench is also in our roadmap for our project . greetings Mit herzlichem Gruss Carsten Harnisch ----------------------------------- InTradeSys Limited Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Chris Bowlds Gesendet: Mittwoch, 8. August 2007 07:41 An: [email protected] Betreff: [qooxdoo-devel] Automated testing of Qooxdoo developed sites Hello all, We are attempting to automate testing of a new commercial product with a Qooxdoo based interface. The testing tool emulates user actions by sending browser events. For example, click on a button, select an entry from a select list, click on a checkbox, etc. These events are fired via JavaScript, and additional arbitrary JavaScript may also be utilized when these fundamental events will not suffice. This event firing technique does not work for some Qooxdoo components, such as qx.ui.toolbar.MenuButton. When we send a click event to the DIV tag which is generated by the MenuButton, Qooxdoo does not react. My theory is that the Qooxdoo event handling must work in a different way; perhaps by capturing mouse events and then converting the x/y coordinates into an event on the appropriate component? Can someone who understands the Qooxdoo event model give some advice on how a qx.ui.toolbar.MenuButton can be programmatically clicked at runtime via JavaScript? Regards, chris Chris Bowlds Solution Architect The Fanfare Group 1091 N. Shoreline Blvd. Mountain View, CA 94043 [EMAIL PROTECTED]
<<image001.jpg>>
------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
