HttpUnit - button.click() related question

J

Jonathan Taub

I've got button which is *NOT* a submit button.
When clicking it, it executes a JavaScript function and than submits a form.
How do I get the new response triggered by the button click.

I'd rather do that than submitting the form "manually".
 
R

Russell Gold

I've got button which is *NOT* a submit button.
When clicking it, it executes a JavaScript function and than submits a form.
How do I get the new response triggered by the button click.

webConversation.getCurrentPage().

Since a button click could do just about anything, there is no way to
determine reliably which response is the proper one to return. In this
case, you are interested in the current page, so you can access it
directly.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top