Thanks for reporting this. I looked at the code, yes, the List index should be starting from zero, too. Also, I should handle the class in the same way as id. I will fix the code tonight.
Thanks, Jian On Apr 21, 5:44 am, dominicm <[email protected]> wrote: > Great, that's now working well. > > Noticed a couple of other things: > > 1. Cannot use "*" with class. error thrown is > ERROR: Error executing strategy function jquery: Syntax error, > unrecognized expression: .*message > > 2. LIst objects still have problem with index vs number, as Table > objects did. > > Thanks > > On Apr 17, 7:31 pm, John <[email protected]> wrote: > > > Fixed it. Please update your jar from Maven repo or our user group. > > > Please remove clocator from the abstract container because it has > > nothing > > to do with locating. > > > Thanks, > > > Jian > > > On Apr 17, 12:18 pm, Jian Fang <[email protected]> wrote: > > > > Seems I need to put a null check there. I will fix it soon. > > > > BTW, there is any performance improvement for the latest jar? > > > > Thanks, > > > > Jian > > > > On Fri, Apr 17, 2009 at 10:23 AM, dominicm > > > <[email protected]>wrote: > > > > > I managed to narrow this down to the use of abstract containers like: > > > > > ui.Container(uid:'coupon') > > > > > Using > > > > ui.Container(uid:'coupon',clocator:[:]) > > > > > works fine > > > > > On Apr 17, 2:57 pm, dominicm <[email protected]> wrote: > > > > > Hi, > > > > > > Am getting the following error when running any test using JQuery or > > > > > XPath. > > > > > > Caused by: java.lang.NullPointerException: Cannot invoke method trim() > > > > > on null object > > > > > at org.codehaus.groovy.runtime.NullObject.invokeMethod > > > > > (NullObject.java:77) > > > > > at org.codehaus.groovy.runtime.InvokerHelper.invokePogoMethod > > > > > (InvokerHelper.java:743) > > > > > at org.codehaus.groovy.runtime.InvokerHelper.invokeMethod > > > > > (InvokerHelper.java:720) > > > > > at org.codehaus.groovy.runtime.callsite.NullCallSite.call > > > > > (NullCallSite.java:17) > > > > > at > > > > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > > > > > (CallSiteArray.java:43) > > > > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > > > > > (AbstractCallSite.java:116) > > > > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > > > > > (AbstractCallSite.java:120) > > > > > at org.tellurium.dsl.WorkflowContext.appendReferenceLocator > > > > > (WorkflowContext.groovy:102) > > > > > at > > > > > org.tellurium.dsl.WorkflowContext$appendReferenceLocator.call > > > > > (Unknown Source) > > > > > at > > > > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > > > > > (CallSiteArray.java:43) > > > > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > > > > > (AbstractCallSite.java:116) > > > > > at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call > > > > > (AbstractCallSite.java:124) > > > > > at > > > > org.tellurium.object.Container.groupLocating(Container.groovy:45) > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > > at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) > > > > > at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown > > > > Source) > > > > > at java.lang.reflect.Method.invoke(Unknown Source) > > > > > at org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite > > > > > $PogoCachedMethodSiteNoUnwrapNoCoerce.invoke(PogoMetaMethodSite.java: > > > > > 266) > > > > > at > > > > org.codehaus.groovy.runtime.callsite.PogoMetaMethodSite.callCurrent > > > > > (PogoMetaMethodSite.java:51) > > > > > at > > > > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent > > > > > (CallSiteArray.java:47) > > > > > at > > > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent > > > > > (AbstractCallSite.java:142) > > > > > at > > > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent > > > > > (AbstractCallSite.java:150) > > > > > at org.tellurium.object.Container.walkTo(Container.groovy:67) > > > > > at org.tellurium.object.Container$walkTo.call(Unknown Source) > > > > > at > > > > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall > > > > > (CallSiteArray.java:43) > > > > > at org.tellurium.object.Frame$walkTo.call(Unknown Source) > > > > > at org.tellurium.dsl.UiDslParser.walkTo(UiDslParser.groovy:65) > > > > > at org.tellurium.dsl.UiDslParser$walkTo.call(Unknown Source) > > > > > at org.tellurium.dsl.BaseDslContext.walkToWithException > > > > > (BaseDslContext.groovy:133) > > > > > at > > > > org.tellurium.dsl.BaseDslContext$walkToWithException.callCurrent > > > > > (Unknown Source) > > > > > at > > > > > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent > > > > > (CallSiteArray.java:47) > > > > > at > > > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent > > > > > (AbstractCallSite.java:142) > > > > > at > > > > org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent > > > > > (AbstractCallSite.java:154) > > > > > at > > > > org.tellurium.dsl.BaseDslContext.getText(BaseDslContext.groovy: > > > > > 444) > > > > > at > > > > com.betfair.www.website.methods.BrowserManager.doGetRunnerSummary > > > > > (BrowserManager.java:429)- Hide quoted text - > > > - Show quoted text - --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
