Got an idea of implementing a test tool similar to Wicket's WicketTester but using Selenium