your app works fine in a browser, right? so its most likely an htmlunit problem.
-igor On Wed, Sep 23, 2009 at 7:31 AM, Tomek Sniadach <[email protected]> wrote: > Hi,after upgrade from wicket 1.4-rc2 to 1.4.1 I have problems with my > HtmlUnit tests. It seems to be a problem with form submitting. I'm not sure > if this is a wicket problem, but with version 1.4.rc2 it works fine. > Here a sample code: > > HtmlPage page = client.getPage(request); > HtmlButton btn = getSubmitButton(page); > ... > btn.click(); > List results = page.getByXpath("xpath to my filter results"); > > > The problem is that the page isn't updated. When I write page = > page.refresh(); after btn.click() it works fine, but it should not be > necessary. The button causes an ajax request so btn.click() returns no new > page. As I said, I don't know if this is a problem in wicket, but when I > downgrade into 1.4-rc2 the tests work fine. I've also tried with 1.4.-rc5: > he same as in 1.4.1 > Does anyone has any idea? > > greets > Tomek > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
