You're right Jevon. I didn't look at the screenshot but this is definitly a 
Javascript confirm dialog.

++

Julien




________________________________
De : Jevon Wright <je...@jevon.org>
À : Usage problems for JWebUnit <jwebunit-users@lists.sourceforge.net>
Envoyé le : Mardi, 4 Août 2009, 12h10mn 28s
Objet : Re: [JWebUnit-users] Re : how to click "ok" button that appears in a 
popup window

Isn't that message box just a standard Javascript confirm() call,
rather than a different browser window?

In that case, you should be able to use
setExpectedJavaScriptConfirm(String message, boolean action).

Jevon

On Tue, Aug 4, 2009 at 7:21 PM, Julien HENRY<henr...@yahoo.fr> wrote:
> Hi Pradeep,
>
> The first step is to switch the context to the popup. You can use one of:
>
> void gotoWindow(int windowID)
>           Make a given window active.
>  void gotoWindow(String windowName)
>           Make a given window active.
>  void gotoWindowByTitle(String title)
>           Make first window with the given title active.
> If you don't know the id, then probably you know the name or the title.
>
> Then you can use one of the click or submit method depending on the nature
> of your OK button. There is currently no way to "simulate" keystrokes.
>
> Regards,
>
> Julien
>
> ________________________________
> De : Pradeep <skrishnaprad...@yahoo.co.in>
> À : jwebunit-users@lists.sourceforge.net
> Envoyé le : Mardi, 4 Août 2009, 7h34mn 09s
> Objet : [JWebUnit-users] how to click "ok" button that appears in a popup
> window
>
> Hi All,
>
>    How can I click on 'ok' button that apears as a popup ? I dont know the
> winow id of the pop up. Also is there a way can I use the keystrokes in the
> program to do certain operations ?  Attached the screenprint of the pop
> window. Appreciate your help :)
>
> Regards,
> Pradeep
>
>
>
> ------------------------------------------------------------------------------
> Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
> trial. Simplify your report design, integration and deployment - and focus
> on
> what you do best, core application coding. Discover what's new with
> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
> _______________________________________________
> JWebUnit-users mailing list
> JWebUnit-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/jwebunit-users
>
>

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users



      
------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
JWebUnit-users mailing list
JWebUnit-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to