After commenting out this definition and updating all tables and lists to the new UID format my test is now able to start running (although I have other problems) so this issue doesn't seem to be xpath related.
On 6 April 2010 10:44, Jonathan Share <[email protected]> wrote: > Hi, > > I've just had the latest updates that happened over easter come in, > I've updated my pom's to add the new dependency and update selenium to > 1.0.1-te3-SNAPSHOT however my tests are failing on the following, very > simple definition. > > ui.Container(uid: "header", locator: "//tab...@class = > 'outerBox']/tbody/tr[1]") { > Container(uid: "nav", clocator: [tag: "table"]) { > UrlLink(uid: "logout", clocator: [href: "*logout.do"]) > } > } > > As I've used xpath here I tried adding a call to disableCssSelector() > however this has no effect. Stacktrace is below. > > Do I really have to go through and change out all of my XPaths? Or is > there another configuration directive I should try? > > Regards, > > Jonathan > > > java.lang.NullPointerException: Cannot invoke method getId() on null object > at > org.codehaus.groovy.runtime.NullObject.invokeMethod(NullObject.java:77) > at > org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > at > org.codehaus.groovy.runtime.callsite.NullCallSite.call(NullCallSite.java:17) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > at > org.codehaus.groovy.runtime.callsite.PojoMetaMethodSite.call(PojoMetaMethodSite.java:54) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:121) > at > org.telluriumsource.ui.builder.UiObjectBuilder.internBuild(UiObjectBuilder.groovy:86) > at > org.telluriumsource.ui.builder.UiObjectBuilder$internBuild.callCurrent(Unknown > Source) > at > org.telluriumsource.ui.builder.ContainerBuilder.build(ContainerBuilder.groovy:16) > at org.telluriumsource.ui.builder.ContainerBuilder$build.call(Unknown > Source) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > at org.telluriumsource.ui.builder.UrlLinkBuilder$build.call(Unknown > Source) > at > org.telluriumsource.dsl.UiDslParser.createNode(UiDslParser.groovy:152) > at groovy.util.BuilderSupport.doInvokeMethod(BuilderSupport.java:96) > at groovy.util.BuilderSupport.invokeMethod(BuilderSupport.java:64) > at > org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:45) > at > org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117) > at > org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:129) > -- 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.
