Need more information on waitForPopUp method

6 views
Skip to first unread message

Avi

unread,
Feb 11, 2011, 3:46:02 AM2/11/11
to tellurium-users
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

Jian Fang

unread,
Feb 11, 2011, 9:21:35 AM2/11/11
to telluri...@googlegroups.com
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


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


avinash more

unread,
Feb 11, 2011, 1:37:41 PM2/11/11
to tellurium-users
Hi,

I have define my popup window in UI module as


ui.Window(uid:"testWindow", name="TestWindow"){
   ........
}

I have give name of the window as "TestWindow". Still my question was it was waitForPopUp should have waited till the entire pop window(TestWindow) is completely loaded and then it should move to select window where I am currently getting the exception.

Regards,
Avinash

John

unread,
Feb 12, 2011, 12:46:54 PM2/12/11
to tellurium-users
waitForPopup should wait until the window is fully loaded. Your
problem is
in the UI definition, name="TestWindow" should be name: "TestWindow".

On Feb 11, 1:37 pm, avinash more <moreavina...@gmail.com> wrote:
> Hi,
>
> I have define my popup window in UI module as
>
> ui.Window(uid:"testWindow", name="TestWindow"){
>    ........
>
> }
>
> I have give name of the window as "TestWindow". Still my question was it was
> waitForPopUp should have waited till the entire pop window(TestWindow) is
> completely loaded and then it should move to select window where I am
> currently getting the exception.
>
> Regards,
> Avinash
>
> On Fri, Feb 11, 2011 at 7:51 PM, Jian Fang <john.jian.f...@gmail.com> wrote:
> > 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
>
Reply all
Reply to author
Forward
0 new messages