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

Reply via email to