Noticed this trying to write Cucumber features to prevent a user gaming an application. We handled the case where the user clicks back and the page reloads, but the real Firefox (at least 3.5) has different behaviour - it returns to a cached page. This means that we can't accurately simulate Firefox in our tests.
It would be a great help here if HtmlUnit implemented the Firefox behaviour. However, I appreciate that that could be a significant feature.
actually this is a key feature for me, what i am really looking for is a way to cache a page and load it back later still being able to click links and buttons but without having to issue a "goto url"
Ok I have a solution the page caching I was looking for: http://gist.github.com/165436
As I am using celerity, the htmlunit ruby wrapper this is great for me. This solution however, is not a solution for this ticket.
We did some changes here, this is implemented now.