Is there any way to automate the clicking of a link or button, similar to
WicketTester, but within a running Wicket WebApplication ?
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/How-to-automate-clicking-of-a-link-or-button-tp220p220.html
Sent from the Users
What do you want to do exactly ?
There is no need to click a button in Wicket.
E.g.:
btn = new Button(...) {
public void onClick() {
myService.doSomething();
}
}
so you can just call: myService.doSomething() instead.
In javascript you can do: Wicket.$(myButtonId).click()
On Thu,
I've got some code now which does what I want - different from what you
suggested with London-Paint - still need to return to that as once I have it
working it will be probably be better. I can click on a link/button, and run
a piece of code which runs a javascript function and returns the value