From: Jeff M. <jma...@ho...> - 2005-05-10 17:50:34
|
After reading the information in the "How do I use JavaScript..." section, I know I need to implement the ConfirmHandler interface to work with a confirm dialog. I don't understand how to achieve two things, though: 1. When a confirm is triggered during the execution of a HtmlTest case, how do I simulate the user input for what would be selected (that is, 'ok' or 'cancel')? 2. How would you capture that in the handleConfirm( final Page page, final String message ) method? My guess is that there must be a way to access the dialog via the argument page, but even so, I'm still not clear on it particularly when considering question #1. This might be easy, but I'm just getting into using HtmlUnit so any help would be appreciated. Thanks. Jeff |