Bugs item #1565634, was opened at 2006-09-26 12:48
Message generated for change (Settings changed) made by henryju
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1565634&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.3
Status: Open
Resolution: None
Priority: 5
Submitted By: Veenay Dodia (veenay_dodia)
Assigned to: Julien HENRY (henryju)
Summary: HTML page with several same form name, unable to find form
Initial Comment:
I am trying to test an html page with several forms, a
couple of which have a select with the same name. I
want to invoke a select on one of them.
something like..
<html>
<body>
<form name="mainCourse">
...
<select name="sauce">
<option>mustard</option>
<option>horseradish</option>
</select>
</form>
<form name="desert">
...
<select name="sauce">
<option>chocolate</option>
<option>strawberry</option>
</select>
</form>
</body>
</html>
I am calling
Webtester tester = ....
tester.setWorkingForm("desert");
//to set the form I want to check the select on, and
then calling tester.selectOption("sauce", "chocolate");
Stepping through in the debugger I found that within
HtmlUnitDialog#hasFormSelected(String selectName); the
method getFormWithSelect(String) is called. This
resets the working form to be the first one with a
select of that name on it. subsequent code fails as it
is now dealing with the wrong select.
is there a way to interact with a specific form
without the working form being reset?
TIA
Veenay
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=497982&aid=1565634&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