Ok, I took a look at jquery but now I'm even more confuse. So I CAN use clocator within my widgets defineWidget method AND when I embed my widget in the ui definition of a UIModuel, I also use a clocater. What I don't understand is the relationship between the clocaters in my widget definition and the clocator in the module.
On Aug 21, 10:31 pm, Jian Fang <[email protected]> wrote: > Widget object extends UiObject and thus, it has a locator attribute. Please > see the jquery-ui project > as a reference. > > But I want to remove the locator in the widget object in the future because > a widget should be an encapsulation of > a set of UIs and it only needs options to define itself. To further define > the location of a widget, you can specify the > locator of the UI object that references the widget. > > Could you tell me your use case that you need a locator for the widget? > > Thanks, > > Jian > > > > On Sat, Aug 21, 2010 at 8:05 PM, Rudy Bonefas <[email protected]> wrote: > > Is it possible to use a clocator in a widget class definition? I > > tried this but at run time I get > > > groovy.lang.MissingPropertyException: No such property: locator for > > class: org.telluriumsource.ui.widget.WidgetDslContext > > at > > > org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdap > > ter.java: > > 49) > > > Seems a shame if this is true since the composite locator allows me > > to not have to write a full XPath query. > > > -- > > You received this message because you are subscribed to the Google Groups > > "tellurium-users" group. > > To post to this group, send email to [email protected]. > > To unsubscribe from this group, send email to > > [email protected]<tellurium-users%2Bunsubscribe@ > > googlegroups.com> > > . > > For more options, visit this group at > >http://groups.google.com/group/tellurium-users?hl=en. -- You received this message because you are subscribed to the Google Groups "tellurium-users" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
