From: Kent T. <ke...@cp...> - 2005-07-03 01:26:01
|
David D. Kilzer <ddkilzer <at> kilzer.net> writes: > > Use a timer thread to make sure the test times out while it's waiting > for a particular result. > > You can never be sure when the result is returned unless some extra > functionality is added to the XMLHttpRequest implementation in > HtmlUnit to make it easier to test. Thanks for the reply. I tried that but it throws an exception saying there is Context associated with the current thread. Anyway, my solution now is to make the request synchronous. This works quite well. |