Menu

Problem with iframes and javascript

Help
Anonymous
2004-09-05
2013-04-26
  • Anonymous

    Anonymous - 2004-09-05

    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

     
    • Sir Runcible Spoon

      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.

       

Log in to post a comment.

MongoDB Logo MongoDB