TrUMP is saying that it cannot identify the element in the DOM and so
when you are running the test, Tellurium cannot find the Div element.
I would suggest to record the Div element and after clicking the
Generate button. Click Customize at the top and see if that DIV
element has "x" at the end. I suspect it does. So try to customize
using the attributes shown in the right pane and see if it will remove
"x".

If its possible can you provide us with the HTML...

Thanks,
Vivek

On Aug 31, 7:59 am, prasanna bhat <[email protected]> wrote:
> Hi Jian,
>
> I'm able to record the UI objects using the TrUMP plug-in which i downloaded
> from the URL below. The UI Object is actually of type <div> and the action
> performed is click i.e its not a default button but a <div> element
> performing the same action as button. I copied the generated UI Module from
> TrUMP to a groovy file and tried performing click operation, an error
> occured.
>
> This is the snap shot.
>
> defineUi() {
>
> ui.Div(uid: "search", clocator: [tag: "div",text: " Search ", *class*:
> "tab-unselected-on-color
> tab-unselected l", id: "tabSearch"])
>
> }
>
> public void clickSearch(){
>
> click "search"
>
> }
>
> this is the error i got in Eclipse Ganymede after running a simple Junit
> Test:
>
> Error: org.tellurium.exception.UiObjectNotFoundException: Cannot find UI
> Object search
>  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.reflection.CachedConstructor.doConstructorInvoke(CachedConstructor.java:71)
>  at
> org.codehaus.groovy.runtime.callsite.ConstructorSite$ConstructorSiteNoUnwrap.callConstructor(ConstructorSite.java:84)
>  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:200)
>  at
> org.tellurium.dsl.BaseDslContext.walkToWithException(BaseDslContext.groovy:214)
>  at org.tellurium.dsl.BaseDslContext$walkToWithException.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:155)
>  at org.tellurium.dsl.BaseDslContext.click(BaseDslContext.groovy:219)
>  at org.tellurium.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 com.tellurium.mytest.DESFlowSearch.clickSearch(DESFlowSearch.groovy:19)
>  at
> com.tellurium.mytest.DESFlowSearchTestCase.testClick(DESFlowSearchTestCase.java:25)
>  at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>  at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>  at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:597)
>  at org.junit.internal.runners.TestMethod.invoke(TestMethod.java:59)
>  at
> org.junit.internal.runners.MethodRoadie.runTestMethod(MethodRoadie.java:98)
>  at org.junit.internal.runners.MethodRoadie$2.run(MethodRoadie.java:79)
>  at
> org.junit.internal.runners.MethodRoadie.runBeforesThenTestThenAfters(MethodRoadie.java:87)
>  at org.junit.internal.runners.MethodRoadie.runTest(MethodRoadie.java:77)
>  at org.junit.internal.runners.MethodRoadie.run(MethodRoadie.java:42)
>  at
> org.junit.internal.runners.JUnit4ClassRunner.invokeTestMethod(JUnit4ClassRunner.java:88)
>  at
> org.junit.internal.runners.JUnit4ClassRunner.runMethods(JUnit4ClassRunner.java:51)
>  at
> org.junit.internal.runners.JUnit4ClassRunner$1.run(JUnit4ClassRunner.java:44)
>  at
> org.junit.internal.runners.ClassRoadie.runUnprotected(ClassRoadie.java:27)
>  at org.junit.internal.runners.ClassRoadie.runProtected(ClassRoadie.java:37)
>  at
> org.junit.internal.runners.JUnit4ClassRunner.run(JUnit4ClassRunner.java:42)
>  at
> org.eclipse.jdt.internal.junit4.runner.JUnit4TestReference.run(JUnit4TestReference.java:45)
>  at
> org.eclipse.jdt.internal.junit.runner.TestExecution.run(TestExecution.java:38)
>  at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:460)
>  at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:673)
>  at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:386)
>  at
> org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
>
> and The Log in TrUMP 0.2.0 plug-in shows a warning as below:
>
>    - [warn] The XPath for Node div0
>    //descendant-or-self::div[normalize-space(text())=normalize-space("Search")
>    and @class="tab-unselected-on-color tab-unselected l" and @id="tabSearch"]
>    returned 0 nodes, failed validation
>    - [warn] The XPath for Node div0
>    //descendant-or-self::div[normalize-space(text())=normalize-space("Search")
>    and @class="tab-unselected-on-color tab-unselected l" and @id="tabSearch"]
>    returned 0 nodes, failed validation
>
> please help me out with this, i will be expecting your reply soon.
>
> Thanks,
>
> Prasanna
>
> On Sat, Aug 29, 2009 at 12:52 AM, Jian Fang <[email protected]>wrote:
>
> > Thanks to Vivek for the quick fix. Please download the latest snapshot from
>
> >http://kungfuters.org/nexus/content/repositories/snapshots/tellurium/...
>
> > and install it. You should be able to record now.
>
> > The frame/iframe support still needs more work.
>
> > Thanks,
>
> > Jian
>
> > On Fri, Aug 28, 2009 at 9:24 AM, Mahendra Kariya <[email protected]
> > > wrote:
>
> >> Which version of Firefox are you using? There are a few problems with the
> >> latest version and we are working on it.
>
> >> Regards,
> >> Mahendra Kariya
> >>http://www.mahendrakariya.blogspot.com
>
> >> On Fri, Aug 28, 2009 at 12:52 PM, prasanna bhat <[email protected]
> >> > wrote:
>
> >>> Hi,
>
> >>>    I'm a novice tester. I have started using tellurium testing
> >>> framework recently and i would like to thank all of you who are
> >>> involved in this project for providing such vast amount of resources
> >>> and information at projects website.
> >>> I'm able to execute sample examples (using Eclipse and Junit) which
> >>> were posted in the tellurium home page and also i tried few examples
> >>> on my own.
>
> >>> The problem i'm facing is this:
> >>>   I'm able to record UI on few web pages, but i'm not able to record
> >>> Google home Page (http://www.google.co.in) and also i need to test my
> >>> web application, whose UI is also not getting recorded with TrUMP.
>
> >>>  the log generated by TrUMP looks like this
>
> >>>    * [error] uiModelArray is not defined, cannot generate source!
> >>>    * [warn] The root node in the Tree is null
>
> >>>  please help me with this.
--~--~---------~--~----~------------~-------~--~----~
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