Hi Loic, yep, that's a feature :) The string you specify for the attribute value is treated as a regular expression, so if you want exact matches, you'll have to use "^name$". See the "qxh Locator tutorial" section of the Selenium user extension's wiki page[1] for more info.
Regards, Daniel [1]http://qooxdoo.org/contrib/project/simulator/selenium-user-extension Loic - Novlog schrieb: > Hi. > > I'm using properties values in order to identify objects in my > application, and the qxh locator seems to automatically add wildcards > around the value of my attribute: [...@attrib=name] behaves like > [...@attrib=.*name.*] > > Here is an example of how I'm using it: > > In my qooxdoo application, I create a widget, for example a TextField, > and give it a name. > var myTextField = new qx.ui.form.TextField(); > myTextField.setName("myTextFieldName"); > > Then if I use a string like the following one as a locator, it will > select my object. (I am using the Java API to test my application.) > "qxh=*/[...@name=textfield]" > > Is it a feature or am I using qxh locators the wrong way ? > > Thanks. > > -- > Loic - Novlog > > ------------------------------------------------------------------------------ > Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day > trial. Simplify your report design, integration and deployment - and focus on > what you do best, core application coding. Discover what's new with > Crystal Reports now. http://p.sf.net/sfu/bobj-july > _______________________________________________ > qooxdoo-devel mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel > > ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ qooxdoo-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/qooxdoo-devel
