--
You received this message because you are subscribed to the Google Groups "tellurium-users" group.
To post to this group, send email to telluri...@googlegroups.com.
To unsubscribe from this group, send email to tellurium-use...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/tellurium-users?hl=en.
ui.Container(uid: "Link", clocator: [tag: "a"]){TextBox(uid: "Bar", clocator: [tag: "span", text: "Bar", direct: "true"])}open "file:///C:/Temp/html/index.html"click "Link.Bar"waitForPageToLoad 30000
groovy.lang.MissingMethodException: No signature of method: org.telluriumsource.ui.object.UiObject.click() is applicable for argument types: (org.telluriumsource.dsl.BaseDslContext$_click_closure4) values: [org.telluriumsource.dsl.BaseDslContext$_click_closure4@26e7127]Possible solutions: wait(), wait(long), split(groovy.lang.Closure), sleep(long), print(java.io.PrintWriter), print(java.lang.Object)at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39)at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27)at java.lang.reflect.Constructor.newInstance(Constructor.java:513)at org.codehaus.groovy.reflection.CachedConstructor.invoke(CachedConstructor.java:77)at org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrapNoCoerce.callConstructor(ConstructorSite.java:107)at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallConstructor(CallSiteArray.java:52)at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:192)at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callConstructor(AbstractCallSite.java:208)at org.telluriumsource.ui.object.UiObject.methodMissing(UiObject.groovy:170)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)at org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:88)at groovy.lang.MetaClassImpl.invokeMissingMethod(MetaClassImpl.java:813)at groovy.lang.MetaClassImpl.invokePropertyOrMissing(MetaClassImpl.java:1107)at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:1060)at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:886)at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:39)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:125)at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callSafe(AbstractCallSite.java:90)at org.telluriumsource.dsl.BaseDslContext.click(BaseDslContext.groovy:166)at org.telluriumsource.dsl.BaseDslContext$click.callCurrent(Unknown Source)at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCallCurrent(CallSiteArray.java:44)at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:143)at org.codehaus.groovy.runtime.callsite.AbstractCallSite.callCurrent(AbstractCallSite.java:151)at module.FooModule.execFlow1(Foo.groovy:39)at FooTestCase.testCase(FooTestCase.java:30)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:44)
at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15)at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:41)at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:20)at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:76)at org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)at org.junit.runners.ParentRunner$3.run(ParentRunner.java:193)at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:52)at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:191)at org.junit.runners.ParentRunner.access$000(ParentRunner.java:42)at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:184)at org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:28)at org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:31)at org.junit.runners.ParentRunner.run(ParentRunner.java:236)at org.junit.runner.JUnitCore.run(JUnitCore.java:157)at com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:65)
ui.Container(uid: "Menu", clocator: [tag: "div", class: "menu"]){
Span(uid: "Foo", clocator: [tag: "span", text: "Foo"])
Span(uid: "Bar", clocator: [tag: "span", text: "Bar"])
}
Can you try this? click "Menu.Foo"
ui.Container(uid: "Link", clocator: [tag: "a"]){
TextBox(uid: "Bar", clocator: [tag: "span", text: "Bar", direct: "true"])
}
click "Link.Bar"
Container(uid: "Menu", clocator: [tag: "div", class: "menu"]){
Span(uid: "Foo", clocator: [tag: "span", text: "Foo"])
Span(uid: "Bar", clocator: [tag: "span", text: "Bar"])
}
click "Menu.Foo"
Thanks, setting the values to false gets the test working. I didn't know that usingtellurium engine and css selectors had implications on using xpath. This makes me thinkthat maybe I don't have to use xpath at all. Till now I've been trying to use it to solve a casein which there is a bunch of links like so:<div class='menu'><a href="http://www.foo.com"><span>Foo</span></a><a href="http://www.bar.com"><span>Bar</span></a></div>and I want to get the foo link. Now if there was no <span> inside, I couldjust useui.UrlLink(uid: "TheLink", clocator : [tag :"a", text : "Foo"])but the <span> makes it more difficult. Obviously I can use xpath to do this, butis there a better alternative?
--