HttpUnit - button.click() related question

Discussion in 'Java' started by Jonathan Taub, Jan 27, 2004.

  1. 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".
     
    Jonathan Taub, Jan 27, 2004
    #1
    1. Advertising

  2. Jonathan Taub

    Russell Gold Guest

    In article <>,
    (Jonathan Taub) wrote:

    > 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.

    --
    Russell Gold

    http://www.httpunit.org
     
    Russell Gold, Feb 13, 2004
    #2
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Purvi T
    Replies:
    0
    Views:
    846
    Purvi T
    Oct 19, 2004
  2. Tom Koenning

    httpUnit

    Tom Koenning, Jul 22, 2003, in forum: Java
    Replies:
    1
    Views:
    4,420
    Tom Koenning
    Jul 24, 2003
  3. Jonathan Taub
    Replies:
    1
    Views:
    1,801
    Russell Gold
    Feb 12, 2004
  4. bhimi
    Replies:
    0
    Views:
    617
    bhimi
    Sep 13, 2004
  5. Amy
    Replies:
    0
    Views:
    991
Loading...

Share This Page