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.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
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.
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