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