Feature Requests item #2697234, was opened at 2009-03-20 06:49 Message generated for change (Comment added) made by jtse You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=2697234&group_id=61302
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Core API Group: Release 2.2 Status: Open Priority: 5 Private: No Submitted By: James Tse (jtse) Assigned to: Jevon Wright (jevonwright) Summary: Make HtmlUnit objects accessible Initial Comment: I've been trying to figure out a way to synchronize ajax calls instead of using Thread.sleep. I know it's possible to do it via HtmlUnit. However, the HtmlUnit API is not directly accessible via JWebUnit. I was wondering if it would be possible to give users of JWebUnit API direct access to HtmlUnit APIs. ---------------------------------------------------------------------- >Comment By: James Tse (jtse) Date: 2009-03-23 06:59 Message: There is the NicelyResynchronizingAjaxController (which may be an outdated approach): WebClient webClient = new WebClient(); webClient.setAjaxController(new NicelyResynchronizingAjaxController()); And there's also HtmlUnit's ThreadManager.joinAll(long maxWaitMillis) (which is an experimental API): http://htmlunit.sourceforge.net/apidocs/com/gargoylesoftware/htmlunit/ThreadManager.html#joinAll(long) It would be nice if there was a JWebUnit API call to do this but I think the API calls to do AJAX synch-ing in HtmlUnit is unstable (as in likely to change in the future). This is why I suggest exposing the HtmlUnit objects to give users of JWebUnit the option to use these bleeding edge features. Thanks :) ---------------------------------------------------------------------- Comment By: Jevon Wright (jevonwright) Date: 2009-03-22 18:48 Message: That is a good idea, how does HtmlUnit support synchronising with Ajax calls? Cheers :) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=497985&aid=2697234&group_id=61302 ------------------------------------------------------------------------------ Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are powering Web 2.0 with engaging, cross-platform capabilities. Quickly and easily build your RIAs with Flex Builder, the Eclipse(TM)based development software that enables intelligent coding and step-through debugging. Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com _______________________________________________ JWebUnit-development mailing list JWebUnit-development@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jwebunit-development