Menu

Form Submit creates popup report - Javascript

Help
Mike Day
2003-12-05
2003-12-11
  • Mike Day

    Mike Day - 2003-12-05

    Hi All,

    I am having trouble executing javascript when submitting a form.

    I have a form that, when submitted creates a popup report.

    I have tried using WebConversation.getOpenWindow() but all I get is a null window in return.  I have tried setting a breakpoint in
    com.meterware.httpunit.javascript.JavaScript.Window.jsFunction_open() but this breakpoint is never hit.  I am wondering if I have to do anything special to be able to test javascript functions??

    Any information would be most appreciated.

     
    • David Demmer

      David Demmer - 2003-12-11

      Mike,

      if the submit button is calling a javascript function, have you tried a runScript on a WebForm.Scriptable object to call the javascript function in the app under test? Also, see if the javascript function is expecting an object or a string.

      David

       

Log in to post a comment.

MongoDB Logo MongoDB