qooxdoo has no built-in support for synthetic events, but they're easy to create. Here's what we use for the qxWeb unit tests:
var createMouseEvent = function(type) { var domEvent; if (qx.core.Environment.get("event.customevent")) { domEvent = new MouseEvent(type, { canBubble: true, cancelable: true, view: window, }); domEvent.initMouseEvent(type, true, true, window, 1, 0, 0, 0, 0, false, false, false, false, 0, null); } else if (document.createEvent) { domEvent = document.createEvent("UIEvents"); domEvent.initEvent(type, true, true); } else if (document.createEventObject) { domEvent = document.createEventObject(); domEvent.type = type; } return domEvent; }; You can use it like so: var clickEvent = createMouseEvent('click'); qxWeb('.sagecell_evalButton')[0].dispatchEvent(clickEvent); On 11.03.2015 11:12, bober1...@gmx.de wrote: > Hi, > > > I would like to manually click on a (hidden) button existing in a > qx.ui.embed.Html. > I can access teh Button object by using qxWeb('.sagecell_evalButton') > But I cant execute the Method click() on that Object: > > qxWeb('.sagecell_evalButton').click() Uncaught TypeError: undefined is > not a function > > It is working fine when using JQuerry in the browser console: > > $('.sagecell_evalButton').click() > > So how is it possible for me to manually click an existing button unsing > qooxdoo syntax? > > > Thanks for the help! > > Regards, > > Bober > > > > > ------------------------------------------------------------------------------ > Dive into the World of Parallel Programming The Go Parallel Website, sponsored > by Intel and developed in partnership with Slashdot Media, is your hub for all > things parallel software development, from weekly thought leadership blogs to > news, videos, case studies, tutorials and more. Take a look and join the > conversation now. http://goparallel.sourceforge.net/ > > > > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > ------------------------------------------------------------------------------ Dive into the World of Parallel Programming The Go Parallel Website, sponsored by Intel and developed in partnership with Slashdot Media, is your hub for all things parallel software development, from weekly thought leadership blogs to news, videos, case studies, tutorials and more. Take a look and join the conversation now. http://goparallel.sourceforge.net/ _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel