Based on the HTML snippet you provided, I used trump 0.8.0 rc1 to generate
the following module:

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"



On 18 Jan 2011, at 13:55, Szewczyk Dratewka <[email protected]> wrote:

Ok, some clicking around before clicking the actual button help to generate
this :

 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
>
>
but when trying to run such a test results in:


> 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)
>


So what I understand from this is that you cannot click a 'container'.

 --
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.

-- 
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.

Reply via email to