If youre using ajax call you should use tester.executeAjaxEvent(componentPath, event)

-Nino

Emanuele Gesuato wrote:
Hi there,

I'm writing a testcase but i don't know how to click in a "type=button" input component.

If i have a <input type="submit" .. /> component i can click on it using something similar to:

FormTester form = tester.newFormTester("myformpath");
form.submit("mySubmitButtonId");

But using a <input type="button" /> component form.submit doesn't work, the button is using an ajax call and the server-side method never get executed. How can i click on this button using a testcase ?

Thanks,
Emanuele

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to