Support Requests item #1093214, was opened at 2004-12-30 03:32
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=497983&aid=1093214&group_id=61302

Category: None
Group: None
Status: Open
Priority: 5
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


-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
Jwebunit-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users

Reply via email to