we have got a html-page with one or two iFrames in it. They will be load through a new request to the server in the onload-method of the mainpage with the iFrame as target. When the javascriptcode is executed httpunit is unable to locate an active frame with the specified frame name. Is there a solution for this problem?
Thanks in advance.
Dirk
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi All,
we have got a html-page with one or two iFrames in it. They will be load through a new request to the server in the onload-method of the mainpage with the iFrame as target. When the javascriptcode is executed httpunit is unable to locate an active frame with the specified frame name. Is there a solution for this problem?
Thanks in advance.
Dirk
Have you tried implementing WebClientListener and registering it with WebClient.addClientListener()?
Then every time a response is received you can add it to a java.util.List for reference in your test case.
I do something similar with a WebWindowListener to get references to windows that are opened by javascript.