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

[915 byte] By [jabduliusa] at [2007-11-27 7:52:43]
# 1
Could it possibly be a threading issue? Do I need to wait for the interface methods to be called before continuing on with my code?Thanks!Karim Varela
jabduliusa at 2007-7-12 19:33:57 > top of Java-index,Enterprise & Remote Computing,Enterprise Technologies...