Menu

couldn't find a link inside of iframe

Anonymous
2003-03-24
2003-03-25
  • Anonymous

    Anonymous - 2003-03-24

    i try to take a link in iframe - tag with httpunit 1.5.2.

    WebConversation conversation = new WebConversation();
    WebResponse res = conversation.getResponse(myPage);
    ...
    res = conversation.getResponse(res.getLinkWith("here").getRequest());

    become NullPoointerException

    html looks like:

    ...
    testlink
    <iframe width="100%" height="600" name="message_frame" id="message_frame" frameborder="0">Please click                   
                        <a href="read_iframe.jsp;jsessionid=g1vzlpook1" target=_blank>here</a> to view the message.                   
                        </iframe>
    its a one frame on page.
    ...
    what is wrong?

    thanks.

     
    • Russell Gold

      Russell Gold - 2003-03-25

      I think you are using the <iframe> tag incorrectly. According to the standard, you need to specify a "src" attribute for the contents of the <iframe> - and then you can access its contents like any other frame.  If you don't specify one, you will get an empty frame.

      Whatever is defined within the <iframe> tag itself is NOT displayed unless the user-agent does not support the <iframe> tag. You can turn off <iframe> support in the ClientProperties object, either for a single WebConversation or by default.

       

Log in to post a comment.

Auth0 Logo