Hi Kent,
Thanks for the answer, but that looks like it requires Spring, I'm not using
Spring. I was hoping to use the test framework that is included in Wicket,
not go outside it.
Well, it doesn't require you to use Spring in your code. However, it is
indeed assumed that you're using a IoC fra
wicket:link is a convenience, if it doesnt fit your usecase then use a
real link with wicket id, that is what wicket:link does for you
anyways.
if you dont want to do that then figure out how to parse the generate
href out of markup generated by the tester.
-igor
On Wed, Jun 2, 2010 at 2:42 PM,
Hi Kent,
Thanks for the answer, but that looks like it requires Spring, I'm not using
Spring. I was hoping to use the test framework that is included in Wicket,
not go outside it.
I come across this doing a demo of Wicket and it kind of broke the whole
spiel about "Look, you can do unittests of
Hi Peter,
> If I use wicket:link around a link, how can I click on it with
> WicketTester.clickLink()? It don't have a wicket:id so what would the path
> be?
Please try http://wicketpagetest.sourceforge.net which supports testing
the links. You can do it like:
selenium.click("link=My Page");
Hi,
If I use wicket:link around a link, how can I click on it with
WicketTester.clickLink()? It don't have a wicket:id so what would the path
be?
Thanks/Peter
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-test-a-link-in-wicket-links-tp2233376p2233376.html
S