The FAQ gives some clues how it can be done. I found setting the ajax controller during initialising of the WebClient
didn’t work for me. Elsewhere on the web there are suggestions that changing the Browser type to FIREFOX_3.6 might do the trick – in my case it didn’t.
However I was reading the FAQ incorrectly. The call
should be done inline not during initialization. So we get something like
currentPage = (HtmlPage) getCurrentWindow().getEnclosedPage();