Bugs item #1638720, was opened at 2007-01-18 16:32
Message generated for change (Comment added) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1638720&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: HtmlUnit plugin
Group: Release 1.4
Status: Open
Resolution: None
Priority: 7
Private: No
Submitted By: Saleh matani (matani)
Assigned to: Julien HENRY (henryju)
Summary: gotoFrame("FrameNameOrId") throws NullPointerException
Initial Comment:
NullPointerException after changing Frame and clicking a Link:
Website (index.html) contains 2 Frames A and B , every Frame contains a href
openning link on same frame
getTestContext().setBaseUrl("http://myserver/webtesting");
beginAt("/index.html");
clickLink("LinkOnFrameA);
gotoFrame("B");
clickLink("LinkOnFrameB) <-- throws NullPointerException
I hope this will be fixed before releasing the 1.4
Thanx
Saleh Matani
----------------------------------------------------------------------
>Comment By: Julien HENRY (henryju)
Date: 2007-03-03 18:34
Message:
Logged In: YES
user_id=1235926
Originator: NO
OK, the problem was gotoFrame() do not raise an Exception when no frame is
found, but the current active windows become "null". That's why the next
method you call raises a NPE.
Do not forget to call gotoRootWindow when navigating between frame on the
same level.
----------------------------------------------------------------------
Comment By: Saleh matani (matani)
Date: 2007-01-29 14:09
Message:
Logged In: YES
user_id=923609
Originator: YES
So .. i found out that is more easy to reproduce throwing the
NullPointerException , then you can build an easy html page with 2 frames
"A" and "B" on index.html
getTestContext().setBaseUrl("http://myserver/webtesting");
beginAt("/index.html");
gotoFrame("A");
gotoFrame("B") <-- throws NullPointerException
Matani
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1638720&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