Could you try getting the group:true for the ui.Container Also can you change the locator to clocator and use id :*AttachedCheckBox2 . I also think you need to use a separtor in the List .
Regards Hari On Thu, Oct 29, 2009 at 3:28 PM, Jonathan Share <[email protected]> wrote: > > I have the following List definition; > > ui.Container(uid: "sailing") { > List(uid: "resultCheckboxes", clocator: [id: "BiGrid2-426", tag:"div"]) > { > CheckBox(uid: "all", locator: > "/div[starts-with(@id,'AttachedCheckBox2')]/div/input") > } > } > > however when I try and run; > > println getListSize("sailing.resultCheckboxes") > > I get the following error message; > > groovy.lang.MissingMethodException: No signature of method: > org.tellurium.object.UiObject.buildLocatorWithoutPosition() is > applicable for argument types: (org.tellurium.locator.BaseLocator) > values: [org.tellurium.locator.baseloca...@1c30993] > ... > at org.tellurium.object.UiObject.methodMissing(UiObject.groovy:120) > ... > at org.tellurium.object.List.deriveListLocator(List.groovy:92) > ... > at org.tellurium.object.List.getListLocator(List.groovy:155) > at org.tellurium.object.List$getListLocator.callCurrent(Unknown > Source) > at org.tellurium.object.List.getListSizeByXPath(List.groovy:186) > at org.tellurium.object.List$getListSizeByXPath.call(Unknown Source) > at > org.tellurium.dsl.BaseDslContext.getListSizeByXPath(BaseDslContext.groovy:1057) > at > org.tellurium.dsl.BaseDslContext$getListSizeByXPath.callCurrent(Unknown > Source) > at > org.tellurium.dsl.BaseDslContext.getListSize(BaseDslContext.groovy:1080) > at org.tellurium.dsl.BaseDslContext$getListSize.callCurrent(Unknown > Source) > ... > at module.MyModule.doSomething(MyModule.groovy:107) > > Is this a bug or am I doing something stupid in my module? > > Regards, > > Jonathan > > > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
