Re: Wicket 1.4.1 and HtmlUnit

2009-09-25 Thread Tomek Sniadach
Hi Igor,
yes the application works in a browser. But with wicket 1.4-rc2 my tests are
working.
The behavior in wicket has changed and Htmlunit has a problem with this. I
just try to find the cause, to fix it (or report a bug in htmlunit). I also
suppose it is indeed a problem in HtmlUnit but I couldn't localize the
problem yet.

Tomek

2009/9/23 Igor Vaynberg igor.vaynb...@gmail.com

 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
 tomek.sniad...@googlemail.com 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: users-unsubscr...@wicket.apache.org
 For additional commands, e-mail: users-h...@wicket.apache.org




Wicket 1.4.1 and HtmlUnit

2009-09-23 Thread Tomek Sniadach
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


Re: Wicket 1.4.1 and HtmlUnit

2009-09-23 Thread Igor Vaynberg
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
tomek.sniad...@googlemail.com 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: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org