Support Requests item #1093214, was opened at 2004-12-30 12:32
Message generated for change (Settings changed) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497983&aid=1093214&group_id=61302
Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: None
Group: None
>Status: Closed
Priority: 5
Private: No
Submitted By: Nobody/Anonymous (nobody)
Assigned to: Nobody/Anonymous (nobody)
Summary: no support for iframe
Initial Comment:
i am running a very simple code (here is a snippet)
the html code is this:
the iframe is this:
<form action="TypeMultiple.jsp" method="post"
name="stuffform">
<input type="checkbox" name="is_correct" value="1" >
correct answer
<input type="hidden" name="iid" value="1011937">
<input type="submit" name="Submit" class=button
value="submit">
</form>
the root frame is:
<iframe name="addanswer" src="../cms/TypeMultiple.jsp?
&redirected=1&iid=1011921" width="100%" height="500"
marginwidth=0 marginheight=0 frameborder=0
scrolling=yes></iframe>
beginAt("/myPage.jsp");
assertTitleEquals("myTitle");
assertFramePresent("addanswer");//not needed, but i
wanted to be sure
gotoFrame("addanswer");
this works fine, but when i add:
setWorkingForm("stuffform");
OR
assertFormElementPresent("is_correct");
it fails either because :
net.sourceforge.jwebunit.UnableToSetFormException:
Attempted to set form to null.
at
net.sourceforge.jwebunit.HttpUnitDialog.setWorkingForm
(HttpUnitDialog.java:248)
OR
junit.framework.AssertionFailedError: Did not find form
element with name [is_correct].
at junit.framework.Assert.fail(Assert.java:47)
i have searched through the documetnation and saw
there was a patch for iframe in the case of onload() on
the previous release, but it doesn't solve my problem.
(i didn't want to wait for my final subscription so here is
my email) [EMAIL PROTECTED] (future username
spektory)
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497983&aid=1093214&group_id=61302
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
JWebUnit-development mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-development