It should be your UI module definition problem. The UiObjectNotFoundException means the UI object cannot be found from the UI object registry at the tellurium core (the client side). Could you post your UI module?
Thanks, Jian On Fri, Feb 11, 2011 at 3:46 AM, Avi <[email protected]> wrote: > Hi, > > I am writing a test case for a scenario where a pop up window will be > displayed. This pop up window takes a lot of time to load(1min > approx) . So I am using waitForPopUp method and expects that control > doesn't moves ahead until the popup window is completely loaded. > > My code is > click "testWindow" > waitForPopUp ("testWindow", intElementLoadTime) > selectWindow("testWindow") > > What I observed is once the popup window is opened(but not completely > loaded) the control moves from waitForPopup to selectWindow and here I > get an exception > > org.telluriumsource.exception.UiObjectNotFoundException: Cannot find > UI Object testWindow > 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: > 200) > at > > org.telluriumsource.dsl.BaseDslContext.walkToWithException(BaseDslContext.groovy: > 155) > at org.telluriumsource.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) > > Can somebody explain me the right use of this method and what it > actually does ? > > Regards, > Avinash > > -- > 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.
