On Wed, Jul 2, 2008 at 11:00 PM, Timo Rantalaiho <[EMAIL PROTECTED]> wrote: > > I agree that practical examples on examples on each would be > great! I should try to get around doing an example with > jdave-wicket-selenium.
I committed some additions to jdave-wicket-selenium trunk last week and I'm also using it on a real world project. It still needs some work but so far it seems to be a very nice approach and the ability to easily access both browser content and Wicket component hierarchy is really cool. Testing with selenium is very much like testing components with JDave. public void clientCanBeSelectedFromTheListAndModified() { selenium.click(selectAll(AjaxFallbackLink.class).from(context.get("tabs")).get(1).getMarkupId()); waitForAjaxResponse(); DataView list = selectFirst(DataView.class).from(context); selenium.click(selectFirst(Item.class).from(list).getMarkupId()); waitForAjaxResponse(); selenium.type(selectFirst(TextField.class, "login").from(context).getInputName(), "client1login2"); selenium.click(selectFirst(AjaxButton.class, "submit").from(context).getMarkupId()); waitForAjaxResponse(); specify(clientRepository.load(client.id()).login(), does.equal("client1login2")); } Janne --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]