Hi Julien,

Do you want me to create a feature request for this?


Buhi Mume


On 6/20/06, Julien HENRY <[EMAIL PROTECTED]> wrote:
>
>
> Hi,
>
> Indeed, there is no way to do this without using specific dialog method.
> Perhaps could we provide a new method:
> void gotoWindows(int index);
>
> I think it's possible to implement with htmlunit. I will take a look to
> Selenium.
>
> ++
> Julien
>
> ----- Message d'origine ----
> De : Buhi Mume <[EMAIL PROTECTED]>
> À : [email protected]
> Envoyé le : Mardi, 20 Juin 2006, 4h55mn 43s
> Objet : [Jwebunit-users] Get the Newly-Opened Window
>
>
> Hi,
>
> Is there a way to go to the newly-opened window, provided that the
> window has no name/title?
>
> There are two methods in WebTestCase class that might provide this
> functionality: i) gotoWindow and ii) gotoWindowByTitle. However,
> please correct me if I am wrong, these two methods requires that the
> window of interest has a name or title.
>
> The way I am doing right now is:
> ---start---
> HttpUnitDialog dialog = (HttpUnitDialog) getDialog();
> WebWindow[] windows = dialog.getWebClient().getOpenWindows();
> assertEquals("2 windows must be opened at this point", 2, windows.length);
> WebWindow window = windows[1];
> ---end---
>
> Thank you.
>
>
> Buhi Mume
>
>
> _______________________________________________
> Jwebunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>
>
>
> _______________________________________________
> Jwebunit-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>
>


_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to