I checked in the change. You should use
closeWindow window_uid
to close the window. Under the hood, it actually first selects the
window and then call the close method,
def closeWindow(String windowID){
dispatcher.selectWindow(windowID)
dispatcher.close()
}
I also uploaded the new tellurium-0.6.0.jar to our user group. Please
help us to test if it works.
Thanks,
Jian
On Apr 9, 9:21 am, John <[email protected]> wrote:
> Seems Selenium uses the following method to close window,
>
> /** Simulates the user clicking the "close" button in the titlebar of
> a popup
> window or tab.
> */
> void close();
>
> But before that, maybe we should first select the window to close. I
> will
> add a closeWindow() method to the Window object and let you know
> after I am done.
>
> Thanks,
>
> Jian
>
> On Apr 9, 9:12 am, dominicm <[email protected]> wrote:
>
> > Hi, thanks for your reply.
>
> > This is a full blown popup rather than a confirmation or an alert.
>
> > I can use openWindow and selectWindow but the Selenium close method is
> > not exposed in Tellurium, so I cannot close windows opened using
> > openWindow or as a result of clicking on a link etc.
>
> > On Apr 9, 11:39 am, Haroon Rasheed <[email protected]> wrote:
>
> > > Hi,
>
> > > Did you try any of these??
>
> > > - chooseCancelOnNextConfirmation: By default, Selenium's overridden
> > > window.confirm() function will return true, as if the user had manually
> > > clicked OK; after running this command, the next call to confirm() will
> > > return false, as if the user had clicked Cancel. Selenium will then
> > > resume
> > > using the default behavior for future confirmations, automatically
> > > returning
> > > true (OK) unless/until you explicitly call this command for each
> > > confirmation.
>
> > > - chooseOkOnNextConfirmation: Undo the effect of calling
> > > chooseCancelOnNextConfirmation. Note that Selenium's overridden
> > > window.confirm() function will normally automatically return true, as
> > > if the
> > > user had manually clicked OK, so you shouldn't need to use this command
> > > unless for some reason you need to change your mind prior to the next
> > > confirmation. After any confirmation, Selenium will resume using the
> > > default
> > > behavior for future confirmations, automatically returning true (OK)
> > > unless/until you explicitly call chooseCancelOnNextConfirmation for
> > > each
> > > confirmation.
>
> > > Cheers
> > > Haroon
>
> > > 2009/4/9 dominicm <[email protected]>
>
> > > > Hi,
>
> > > > Is there a way to close a popup window? Can't find a method to do
> > > > this.
>
> > > > Thanks- Hide quoted text -
>
> > > - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---