httpunit -- How to get control of windows dialog box?
How to get control of windows dialog box?
I'm writing some httpunit code that traverses a website, and upon clicking a link, a windows prompt box is displayed with a question and yes/no options. How do I gain control of this dialog? I need to click yes here to continue.
I tried implementing DialogResponder, but I don't seem to be getting any call backs to DialogResponder's methods getConfirmation() or getUserResponse().
I also tried implementing WebWindowListener, but to no avail. I made sure to associate the DialogResonder and WebWindowListener with my WebConversation by calling WebConversation.setDialogResponder() and WebConversation.addWindowListener(), but alas to no avail.
I think that it's not working b/c the javascript prompt() function is never being called. There must be some other mechanism that is causing this prompt box.
Thanks,
Karim Varela

