You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Kent Tong <ke...@cpttm.org.mo> on 2010/08/01 06:12:19 UTC
Re: WicketTester and Palette component
Hi Loic,
If you use wicket page test (http://wicketpagetest.sourceforge.net), you
can test it like:
DefaultSelenium selenium = WebPageTestContext.getSelenium();
WicketSelenium ws = new WicketSelenium(selenium);
ws.openBookmarkablePage(PalettePage.class);
String[] allProducts = selenium.getSelectOptions("wicket=//choices");
assert allProducts.length == 3;
assert allProducts[0].equals("ball pen");
assert allProducts[1].equals("eraser");
assert allProducts[2].equals("paper clip");
selenium.select("wicket=//choices", "eraser");
selenium.click("wicket=//addButton");
...
There is a full example at
http://wicketpagetest.sourceforge.net/examples.html
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: WicketTester and Palette component
Posted by loic <lo...@gmail.com>.
It seems good but i would really like to be able to test Palette without a
new framework ....
Is it really impossible to test Palette with wicket-tester?
Regards
Loic
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2312048.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: WicketTester and Palette component
Posted by loic <lo...@gmail.com>.
Hi Kent, thanks a lot i will take a look a this
Regards,
Loic
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/WicketTester-and-Palette-component-tp2306743p2310424.html
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org