Hi Anitha,
Can't reproduce it.
Here is my w1 (InlineFrame.html):
<html><head></head>
<body>TopFrame<br />
<iframe name="ContentFrame" src="ContentFrame.html"/>
</body></html>
Here is my w2 (ContentFrame.html):
<html>
<title>ContentFrame</title>
<body>
<p>ContentFrame</p>
<form name="frameForm" method="GET" action="../params.jsp">
<input name="color" value="blue" />
<input type="submit" name="submit" />
</form>
</body>
</html>
Here is my test case :
public void testFormInputInInlineFrame() {
beginAt("InlineFrame.html");
gotoFrame("ContentFrame");
assertFormPresent();
setTextField("color", "red");
submit("submit"); //Replace inline frame with a page displaying
param=value
assertTextPresent("color=red ");
}
Can you help me to reproduce it?
++
Julien
----- Message d'origine ----
De : anitha <[EMAIL PROTECTED]>
À : [email protected]
Envoyé le : Vendredi, 29 Décembre 2006, 10h35mn 28s
Objet : [Jwebunit-users] support for forms in Iframe
Hi,
I am using Jwebunit1.4 RC2. I have a webpage(w1)
which has an iframe in it. This iframe has it's source in another webpage(w2).
(like an included file) This webpage, w2 has a form in it and the form has some
form elements. I used the "goToFrame()" method to access the iframe. I am
getting a null pointer exception while trying to use any methods on this
form. The exception trace is as below.
java.lang.NullPointerException
at
net.sourceforge.jwebunit.htmlunit.HtmlUnitDialog.getForm(HtmlUnitDialog.java:814)
at
net.sourceforge.jwebunit.htmlunit.HtmlUnitDialog.hasForm(HtmlUnitDialog.java:337)
at
net.sourceforge.jwebunit.junit.WebTester.assertFormPresent(WebTester.java:697)
at
net.sourceforge.jwebunit.junit.WebTestCase.assertFormPresent(WebTestCase.java:516)
Regards
Anitha
-------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users
__________________________________________________
Do You Yahoo!?
En finir avec le spam? Yahoo! Mail vous offre la meilleure protection possible
contre les messages non sollicités
http://mail.yahoo.fr Yahoo! Mail -------------------------------------------------------------------------
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-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jwebunit-users