How to handle dialogs using wax

Jun 16, 2008 at 11:21 AM

 I am trying to refresh or close any page in CRM.But for that it shows a dialog with Ok and Cancel button.Now if i wana move ahead i need to click on Ok.
 But as wax suppresses dialogs i am not able to click on any of the above two buttons as it closes within seconds.I tried with dailoghandler methods provided but it doesnt serve my purpose.Can somebody please tell me how to handle this.

Thanks in advance