Hi Andy, we have something similar in the framework "qx.ui.core.Widget.getWidgetByElement". This function walks up the DOM and returns the widget instance the element belongs to. Maybe this can be useful for you.
Best Fabian > thanks again, Thomas. > > So if someone is following this thread, the complete answer is: > > In qooxdoo v8 the following class receives a domElement (i.e. a div) > and returns the fully qualified classname of the qooxdoo object > embodied in the div (or undefined if it is not a qx object). > > getQooxdooClassName: function (domElement) > { > if (domElement.$$hash) > { > var qxWrapper = > qx.core.ObjectRegistry.__registry[domElement.$$hash]; > if (qxWrapper.__attribValues && > qxWrapper.__attribValues["$$widget"]) > { > var wid = > qxWrapper.__attribValues["$$widget"]; // widgetId > var widget = > qx.core.ObjectRegistry.__registry[wid]; > return widget.classname > } > } > // the domElement has no qooxdoo counterpart - returns > `undefined` > }, > > > On Wed, Dec 24, 2008 at 2:04 PM, thron7 <thomas.herchenroe...@1und1.de > <mailto:thomas.herchenroe...@1und1.de>> wrote: > > > thank you, Thomas. > > actually I used generated ids to infer the qooxdoo classname of > each div, > > and write easier selenium locators. > > Is there a way to obtain the qooxdoo classname of every native html > > element? > > I'm not sure, the interface has changed with 0.8. Have you tried > looking > at a div's $$hash attribute, and looking it up in > qx.core.ObjectRegistry, > maybe in the __I member?! > > T. > > > I tried to use some introspection starting from the qx > namespace, trying > > to > > reach the ObjectRegistry but with no success so far. > > > > On Wed, Dec 24, 2008 at 1:13 AM, thron7 > > <thomas.herchenroe...@1und1.de > <mailto:thomas.herchenroe...@1und1.de>>wrote: > > > >> > I used generated ids in qx 7 for selenium tests, as explained > in this > >> url: > >> > > http://qooxdoo.org/contrib/project/simulator/qooxdoo-tests-with-selenium > >> > Is it possible to generate them in qx 8? How? > >> > >> I'm afraid no, the setting and the corresponding functionality is > >> currently not available in 0.8. I've added a bug to that end: > >> http://bugzilla.qooxdoo.org/show_bug.cgi?id=1816 > >> > >> Thomas > >> > >> > >> > >> > >> > > ------------------------------------------------------------------------------ > >> _______________________________________________ > >> qooxdoo-devel mailing list > >> qooxdoo-devel@lists.sourceforge.net > <mailto:qooxdoo-devel@lists.sourceforge.net> > >> https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > >> > > > > > > > > -- > > Andy Worms > > > > POB 7011 > > 31070 Haifa > > Israel > > > > T: 077-5496414 > > M: 054-4650657 > > F: 153-77-5496414 > > > > ------------------------------------------------------------------------------ > > _______________________________________________ > > qooxdoo-devel mailing list > > qooxdoo-devel@lists.sourceforge.net > <mailto:qooxdoo-devel@lists.sourceforge.net> > > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > > > ------------------------------------------------------------------------------ > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > <mailto:qooxdoo-devel@lists.sourceforge.net> > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > > > > -- > Andy Worms > > POB 7011 > 31070 Haifa > Israel > > T: 077-5496414 > M: 054-4650657 > F: 153-77-5496414 > ------------------------------------------------------------------------ > > ------------------------------------------------------------------------------ > > ------------------------------------------------------------------------ > > _______________________________________________ > qooxdoo-devel mailing list > qooxdoo-devel@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > -- Fabian Jakobs JavaScript Framework Developer 1&1 Internet AG Brauerstraße 48 76135 Karlsruhe Amtsgericht Montabaur HRB 6484 Vorstand: Henning Ahlert, Ralph Dommermuth, Matthias Ehrlich, Thomas Gottschlich, Matthias Greve, Robert Hoffmann, Markus Huhn, Oliver Mauss, Achim Weiss Aufsichtsratsvorsitzender: Michael Scheeren ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ qooxdoo-devel mailing list qooxdoo-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel